Skip to content

Commit

Permalink
build(ios): fix script for running test suite in xcode
Browse files Browse the repository at this point in the history
Fix skipping async/await test
  • Loading branch information
sgtcoolguy committed Jul 6, 2020
1 parent 5129183 commit 51abc3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/scons-xcode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DEST_APP_JS = path.join(DEST, 'app.js');
const APP_PROPS_JSON = path.join(TEST_SUITE_DIR, 'scripts', 'mocha', 'build', 'iphone', 'build', 'Products', 'Debug-iphonesimulator', 'mocha.app', '_app_props_.json');

// Test files to skip
const TO_SKIP = [ 'es6.class.test', 'es6.import.test', 'ti.map.test', 'es6.async.await.test.js' ];
const TO_SKIP = [ 'es6.class.test', 'es6.import.test', 'ti.map.test', 'es6.async.await.test' ];

async function main() {
await fs.copy(JS_DIR, DEST); // copy Resources from test suite to xcode project
Expand All @@ -32,7 +32,7 @@ async function main() {
}

// TODO: We need to run npm install --production in DEST
await execFile('npm', [ 'install', '--production' ], { cwd: DEST });
await execFile('npm', [ 'ci', '--production' ], { cwd: DEST });
}

main()
Expand Down

0 comments on commit 51abc3e

Please sign in to comment.