-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stark-testing): create separate stark-testing package and use it…
… in all stark packages and starter (#267) * feat(stark-testing): create separate stark-testing package. Replace testing specific dependencies by stark-testing in all stark packages and starter. Fixes #68. [#68][#84][#93] * chore(stark-testing): upgrade dependencies in stark-testing package. Upgrade @types/node in all packages * fix(stark-testing): downgrade 'jasmine-core' dependency due to an issue with Zone.js (angular/zone.js#1015) * fix(starter): clean up tsconfig.spec.json for unit testing
- Loading branch information
1 parent
738374d
commit 204dc35
Showing
16 changed files
with
99 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** | ||
* Look in ./config for karma.conf.js | ||
* Look in stark-testing for karma.conf.typescript.js | ||
*/ | ||
module.exports = require("./node_modules/@nationalbankbelgium/stark-build/config/karma.conf.typescript.js"); | ||
module.exports = require("./node_modules/@nationalbankbelgium/stark-testing/karma.conf.typescript.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const path = require("path"); | ||
|
||
/** | ||
* Helper functions. | ||
*/ | ||
// const ROOT = path.resolve(__dirname, '..'); | ||
const _root = path.resolve(process.cwd(), "."); // project root folder | ||
|
||
const root = path.join.bind(path, _root); | ||
|
||
exports.root = root; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "@nationalbankbelgium/stark-testing", | ||
"version": "0.0.0-PLACEHOLDER-VERSION", | ||
"main": "karma.conf.typescript.js", | ||
"types": "stark-testing.d.ts", | ||
"description": "Stark - Testing", | ||
"author": "Stark Team", | ||
"contributors": [ | ||
"PLACEHOLDER-CONTRIBUTORS" | ||
], | ||
"license": "MIT", | ||
"bugs": "https://github.com/nationalbankbelgium/stark/issues", | ||
"homepage": "https://github.com/nationalbankbelgium/stark", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/NationalBankBelgium/stark.git" | ||
}, | ||
"engines": { | ||
"node": ">=6.11.0", | ||
"npm": ">=5.3.0" | ||
}, | ||
"dependencies": { | ||
"@types/jasmine": "2.8.6", | ||
"@types/node": "6.0.102", | ||
"istanbul-instrumenter-loader": "3.0.0", | ||
"jasmine-core": "2.99.1", | ||
"karma": "2.0.0", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-coverage": "1.1.1", | ||
"karma-jasmine": "1.1.1", | ||
"karma-mocha-reporter": "2.2.5", | ||
"karma-remap-coverage": "0.1.5", | ||
"karma-sourcemap-loader": "0.3.7", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-typescript": "3.0.12", | ||
"karma-typescript-angular2-transform": "1.0.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use strict"; | ||
|
||
const resolve = require("rollup-plugin-node-resolve"); | ||
const commonjs = require("rollup-plugin-commonjs"); | ||
|
||
module.exports = { | ||
//export default { | ||
input: "../../dist/packages-dist/stark-testing/karma.conf.typescript.js", | ||
output: [ | ||
{ | ||
file: "../../dist/packages-dist/stark-testing/stark-testing.js", | ||
format: "cjs", | ||
name: "stark.testing" | ||
} | ||
], | ||
plugins: [ | ||
resolve(), | ||
commonjs() // converts date-fns to ES modules | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** | ||
* Look in ./config for karma.conf.js | ||
*/ | ||
module.exports = require("./node_modules/@nationalbankbelgium/stark-build/config/karma.conf.typescript.js"); | ||
module.exports = require("./node_modules/@nationalbankbelgium/stark-testing/karma.conf.typescript.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters