diff --git a/scripts/runIntegrationTests.js b/scripts/runIntegrationTests.js index 0552a74..b22e8eb 100644 --- a/scripts/runIntegrationTests.js +++ b/scripts/runIntegrationTests.js @@ -10,7 +10,7 @@ readdirSync(cwd) .filter(isDirectory) .map(dirname => join(cwd, dirname)) .forEach(ctx => { - spawnSync('node', ['./node_modules/.bin/ava', '--serial', 'specs/*.integration.js'], { + spawnSync('npm', ['test'], { cwd: ctx, shell: true, stdio: 'inherit', diff --git a/specs/fixtures/basic/package.json b/specs/fixtures/basic/package.json index 8050304..63a60d9 100644 --- a/specs/fixtures/basic/package.json +++ b/specs/fixtures/basic/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "main": "index.js", "license": "MIT", - "scripts": {}, + "scripts": { + "test": "ava --serial specs/*.integration.js" + }, "devDependencies": { "ava": "^0.21.0", "axios": "^0.16.2",