diff --git a/appveyor.yml b/appveyor.yml index 80f5ec2..966054b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,3 +15,7 @@ environment: install: - ps: Install-Product node $env:nodejs_version - npm install + +test_script: + - node --version && npm --version + - npm test \ No newline at end of file diff --git a/test/common/test.js b/test/common/test.js index 250f596..cd56f9a 100644 --- a/test/common/test.js +++ b/test/common/test.js @@ -83,7 +83,7 @@ function run(env) { if (env === 'production') { const cli = path.resolve(__dirname, '../../cli/index.js'); - exec_promise = exec(`${cli} build`).then(() => exec(`${cli} export`)); + exec_promise = exec(`node ${cli} export`); } return exec_promise.then(() => {