Skip to content

Commit

Permalink
Achieve 100% test coverage on app.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Oct 8, 2018
1 parent 4350309 commit fd9d8d8
Show file tree
Hide file tree
Showing 9 changed files with 234 additions and 509 deletions.
7 changes: 5 additions & 2 deletions configs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ module.exports = webpackMerge(
path.resolve(appPath(p))
),
use: {
loader: 'istanbul-instrumenter-loader',
options: { esModules: true }
loader: 'istanbul-instrumenter-loader-fix',
options: {
esModules: true,
fixWebpackSourcePaths: true
}
},
enforce: 'post'
}
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cycle-scripts-one-fits-all",
"version": "6.0.0-beta.0",
"version": "6.0.0-beta.2",
"description": "create-cycle-one-fits-all flavor",
"main": "index.js",
"lint-staged": {
Expand Down Expand Up @@ -41,6 +41,7 @@
"dependencies": {
"@types/webpack-env": "^1.13.6",
"@webpack-blocks/assets": "^2.0.0-alpha",
"@webpack-blocks/core": "^2.0.0-alpha",
"@webpack-blocks/dev-server": "^2.0.0-alpha",
"@webpack-blocks/extract-text": "^2.0.0-alpha",
"@webpack-blocks/postcss": "^2.0.0-alpha",
Expand All @@ -59,7 +60,7 @@
"html-webpack-harddisk-plugin": "^0.2.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^1.1.1",
"istanbul-instrumenter-loader": "^3.0.1",
"istanbul-instrumenter-loader-fix": "^3.0.2",
"lint-staged": "^7.3.0",
"mocha": "^5.2.0",
"mocha-webpack": "^2.0.0-beta.0",
Expand All @@ -82,10 +83,12 @@
"@cycle/time": "^0.15.0",
"@types/mocha": "^5.2.5",
"cycle-onionify": "^6.1.0",
"cyclejs-test-helpers": "^2.0.0",
"cyclejs-test-helpers": "^3.0.0",
"cyclejs-utils": "^3.2.0",
"cyclic-router": "^5.1.7",
"release-it": "^7.6.1",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"snabbdom-looks-like": "^1.0.4",
"snabbdom-pragma": "^2.7.0",
"switch-path": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const devDependencyNames = [
'@types/mocha'
];

const ownDevDependencies = ['release-it'];
const ownDevDependencies = ['release-it', 'rxjs', 'rxjs-compat'];

function patchGitignore(appPath) {
// Rename gitignore after the fact to prevent npm from renaming it to .npmignore
Expand Down
Loading

0 comments on commit fd9d8d8

Please sign in to comment.