jasmine-ts
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -22,3 +22,9 @@ #!/usr/bin/env node | ||
]; | ||
const tsNodeOptions = Object.assign({}, ...TS_NODE_OPTIONS.map((option) => yargs_1.argv[option] && { [option]: yargs_1.argv[option] })); | ||
const tsNodeOptions = Object.assign({}, ...TS_NODE_OPTIONS.map((option) => { | ||
if (yargs_1.argv[option]) { | ||
return (option === "compilerOptions") | ||
? { compilerOptions: dist_1.parse(yargs_1.argv[option]) } | ||
: { [option]: yargs_1.argv[option] }; | ||
} | ||
})); | ||
dist_1.register(tsNodeOptions); | ||
@@ -52,3 +58,4 @@ const Jasmine = require("jasmine"); | ||
} | ||
command.run(jasmine, process.argv.slice(2)); | ||
const commandOptions = process.argv.slice(2).filter((option) => option.indexOf(configPath) >= 0); | ||
command.run(jasmine, commandOptions); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "jasmine-ts", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Execute jasmine with ts-node", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"test": "tslint index.ts && tsc && node lib/index.js --config=spec/jasmine.json spec/jasmine-ts.spec.ts", | ||
"test": "./node_modules/.bin/tslint index.ts && tsc && node lib/index.js --config=spec/jasmine.json spec/jasmine-ts.spec.ts --compilerOptions='{\"allowJs\": true}'", | ||
"prepublishOnly": "tsc" | ||
@@ -30,7 +30,9 @@ }, | ||
"dependencies": { | ||
"jasmine": "^2.6.0", | ||
"ts-node": "^3.2.0", | ||
"typescript": "^2.4.1", | ||
"yargs": "^8.0.2" | ||
}, | ||
"peerDependencies": { | ||
"jasmine": ">= 2.0", | ||
"ts-node": ">=3.2.0 <8", | ||
"typescript": ">=2.4.1" | ||
}, | ||
"devDependencies": { | ||
@@ -40,4 +42,7 @@ "@types/jasmine": "^2.5.53", | ||
"@types/yargs": "^8.0.1", | ||
"jasmine": ">= 2.0", | ||
"jasmine-spec-reporter": "^4.1.1", | ||
"tslint": "^5.5.0" | ||
"ts-node": ">=3.2.0 <8", | ||
"tslint": "^5.5.0", | ||
"typescript": ">=2.4.1" | ||
}, | ||
@@ -44,0 +49,0 @@ "engines": { |
@@ -57,3 +57,16 @@ # jasmine-ts | ||
``` | ||
### Running with istanbul coverage | ||
You can use [nyc](https://github.com/istanbuljs/nyc) to check your test coverage. | ||
Example `package.json`: | ||
```json | ||
{ | ||
"scripts": { | ||
"test": "nyc -r lcov -e .ts -x \"*.spec.ts\" jasmine-ts \"path/to/specs/**/*.spec.ts\"" | ||
} | ||
} | ||
``` | ||
### Note | ||
@@ -60,0 +73,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38565
69
86
8
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedjasmine@5.5.0(transitive)
+ Addedjasmine-core@5.5.0(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedts-node@7.0.1(transitive)
+ Addedtypescript@5.7.2(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedjasmine@^2.6.0
- Removedts-node@^3.2.0
- Removedtypescript@^2.4.1
- Removedansi-styles@3.2.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedexit@0.1.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhomedir-polyfill@1.0.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjasmine@2.99.0(transitive)
- Removedjasmine-core@2.99.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedparse-passwd@1.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-support@0.4.18(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedts-node@3.3.0(transitive)
- Removedtsconfig@6.0.0(transitive)
- Removedtypescript@2.9.2(transitive)
- Removedv8flags@3.2.0(transitive)
- Removedwrappy@1.0.2(transitive)