diff --git a/tests/e2e/e2e_workflow.spec.js b/tests/e2e/e2e_workflow.spec.js index 13ae817ef77d..c6c3fd75c367 100644 --- a/tests/e2e/e2e_workflow.spec.js +++ b/tests/e2e/e2e_workflow.spec.js @@ -62,7 +62,7 @@ describe('Basic end-to-end Workflow', function () { // Can't user the `ng` helper because somewhere the environment gets // stuck to the first build done - sh.exec('./node_modules/.bin/ng build --environment=production --silent'); + sh.exec(`node_modules${path.sep}.bin${path.sep}ng build --environment=production --silent`); expect(existsSync(path.join(process.cwd(), 'dist'))).to.be.equal(true); var envPath = path.join(process.cwd(), 'dist', 'app', 'environment.js'); var envContent = fs.readFileSync(envPath, { encoding: 'utf8' });