@sentio/cli 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/commands/run-test.js
CHANGED
|
@@ -5,6 +5,9 @@ export function runTest(argv) {
|
|
|
5
5
|
const defaultJestConfig = path.resolve(getPackageRoot('@sentio/sdk'), 'lib', 'jest.config.js');
|
|
6
6
|
// if config not existed copy that
|
|
7
7
|
const jest = path.resolve(getPackageRoot('jest'), 'bin', 'jest');
|
|
8
|
+
// Run tsc to do check before test
|
|
9
|
+
const tsc = path.resolve(getPackageRoot('typescript'), 'bin', 'tsc');
|
|
10
|
+
execSync(`node ${tsc} --noEmit`, { stdio: 'inherit' });
|
|
8
11
|
execSync(`NODE_OPTIONS=--experimental-vm-modules node ${jest} ${argv.join(' ')}`, { stdio: 'inherit' });
|
|
9
12
|
}
|
|
10
13
|
//# sourceMappingURL=run-test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-test.js","sourceRoot":"","sources":["../../src/commands/run-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,UAAU,OAAO,CAAC,IAAc;IACpC,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAA;IAC9F,kCAAkC;IAClC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"run-test.js","sourceRoot":"","sources":["../../src/commands/run-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,UAAU,OAAO,CAAC,IAAc;IACpC,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAA;IAC9F,kCAAkC;IAClC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IAEhE,kCAAkC;IAClC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;IACpE,QAAQ,CAAC,QAAQ,GAAG,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IACtD,QAAQ,CAAC,+CAA+C,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;AACzG,CAAC","sourcesContent":["import { execSync } from 'child_process'\nimport path from 'path'\nimport { getPackageRoot } from '../utils.js'\n\nexport function runTest(argv: string[]) {\n const defaultJestConfig = path.resolve(getPackageRoot('@sentio/sdk'), 'lib', 'jest.config.js')\n // if config not existed copy that\n const jest = path.resolve(getPackageRoot('jest'), 'bin', 'jest')\n\n // Run tsc to do check before test\n const tsc = path.resolve(getPackageRoot('typescript'), 'bin', 'tsc')\n execSync(`node ${tsc} --noEmit`, { stdio: 'inherit' })\n execSync(`NODE_OPTIONS=--experimental-vm-modules node ${jest} ${argv.join(' ')}`, { stdio: 'inherit' })\n}\n"]}
|
package/package.json
CHANGED
package/src/commands/run-test.ts
CHANGED
|
@@ -6,5 +6,9 @@ export function runTest(argv: string[]) {
|
|
|
6
6
|
const defaultJestConfig = path.resolve(getPackageRoot('@sentio/sdk'), 'lib', 'jest.config.js')
|
|
7
7
|
// if config not existed copy that
|
|
8
8
|
const jest = path.resolve(getPackageRoot('jest'), 'bin', 'jest')
|
|
9
|
+
|
|
10
|
+
// Run tsc to do check before test
|
|
11
|
+
const tsc = path.resolve(getPackageRoot('typescript'), 'bin', 'tsc')
|
|
12
|
+
execSync(`node ${tsc} --noEmit`, { stdio: 'inherit' })
|
|
9
13
|
execSync(`NODE_OPTIONS=--experimental-vm-modules node ${jest} ${argv.join(' ')}`, { stdio: 'inherit' })
|
|
10
14
|
}
|