Skip to content

Commit 3b6223e

Browse files
committed
install dependencies in during test execution
1 parent 126ebdf commit 3b6223e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "tsc --version && tsc --project \"./src\"",
99
"lint": "tsc --project \"./src\" --noEmit && eslint -c .eslintrc.js --ext .ts ./src",
10-
"comparison-tests": "git clean -xfd test/comparison-tests && npm link --legacy-peer-deps ./test/comparison-tests/testLib && npm link --legacy-peer-deps ./test/comparison-tests/sourceMapsShouldConsiderInputSourceMap && node test/comparison-tests/run-tests.js",
10+
"comparison-tests": "git clean -xfd test/comparison-tests && npm link --legacy-peer-deps ./test/comparison-tests/testLib && node test/comparison-tests/run-tests.js",
1111
"comparison-tests-generate": "git clean -xfd test/comparison-tests && node test/comparison-tests/stub-new-version.js",
1212
"execution-tests": "git clean -xfd test/execution-tests && node test/execution-tests/run-tests.js",
1313
"test": "git clean -xfd test/comparison-tests && git clean -xfd test/execution-tests && node test/run-tests.js",

test/comparison-tests/create-and-execute-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const assert = require("assert");
22
const os = require('os');
33
const fs = require('fs-extra');
4+
const execSync = require('child_process').execSync;
45
const path = require('path');
56
const mkdirp = require('mkdirp');
67
const rimraf = require('rimraf');
@@ -110,6 +111,9 @@ function createTest(test, testPath, options) {
110111
const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json"), { newLine: typescript.NewLineKind.LineFeed });
111112
program.emit();
112113
}
114+
if(test === "sourceMapsShouldConsiderInputSourceMap") {
115+
execSync("npm ci", { cwd: paths.testStagingPath, stdio: 'inherit' });
116+
}
113117

114118
// ensure output directories
115119
mkdirp.sync(paths.actualOutput);

0 commit comments

Comments
 (0)