/*
 * __run__.test.js
 */
/* global it */

const fs = require('fs')
const path = require('path')
const child_process = require('child_process')

const files = fs.readdirSync(__dirname).filter(f => !path.basename(f).startsWith('__'))

files.forEach(file => {

  it(file, function(done) {
    const currentTest = this
    currentTest.timeout(15000)

    const cmd = `node --expose-gc ${path.join(__dirname, file)}`
    const options = {
      maxBuffer: 10 * 1024 * 1024,
    }

    child_process.exec(cmd, options, (error, stdout, stderr) => {
      if (!error)
        return done()

      if (error.code === 222)
        return currentTest.skip()

      if (!error.message.includes('Command failed'))
        return done(error)

      const newError = new Error(stderr + stdout)
      newError.stack = ''
      done(newError)
    })
  })
})

/*
 * __run__.test.js
 */
/* global it */

const fs = require('fs')
const path = require('path')
const child_process = require('child_process')

const files = fs.readdirSync(__dirname).filter(f => !path.basename(f).startsWith('__'))

files.forEach(file => {

  it(file, function(done) {
    const currentTest = this
    currentTest.timeout(15000)

    const cmd = `node --expose-gc "${path.join(__dirname, file)}"`
    const options = {
      maxBuffer: 10 * 1024 * 1024,
    }

    child_process.exec(cmd, options, (error, stdout, stderr) => {
      if (!error)
        return done()

      if (error.code === 222)
        return currentTest.skip()

      if (!error.message.includes('Command failed'))
        return done(error)

      const newError = new Error(stderr + stdout)
      newError.stack = ''
      done(newError)
    })
  })
})

Add quotes in `test / __ run __. js`
Add quotes in `test / __ run __. js`

This is useful to prevent if the project is placed in a folder with quotes E.g `/ home / user / project's / node-gtk`.

By the way ... I skipped this, because I cloned this project in the `/ my-project's /` folder. so I get this error when run 

```bash
npm run test
```


```bash
/ bin / sh: 1: Syntax error: Unterminated quoted string
```