You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is a framework and preprocessor for Karma that combines test files and dependencies into 2 shared bundles
100
-
and 1 chunk per test file. It relies on webpack to generate the bundles/chunks and to keep it updated during
101
-
autoWatch=true.
98
+
This project is a framework and preprocessor for Karma that combines test files and dependencies into 2 shared bundles and 1 chunk per test file. It relies on webpack to generate the bundles/chunks and to keep it updated during autoWatch=true.
102
99
103
-
The first preproccessor triggers the build of all the bundles/chunks and all following files just return the output of
104
-
this one build process.
100
+
The first preproccessor triggers the build of all the bundles/chunks and all following files just return the output of this one build process.
105
101
106
102
### Webpack typescript support
107
103
108
-
By default karma-webpack forces *.js files so if you test *.ts files and use webpack to build typescript to javascript
109
-
it works out of the box.
104
+
By default karma-webpack forces *.js files so if you test *.ts files and use webpack to build typescript to javascript it works out of the box.
110
105
111
106
If you have a different need you can override by settig `webpack.transformPath`
112
107
113
108
```js
114
109
// this is the by default applied transformPath
115
110
webpack: {
116
111
transformPath: (filepath) => {
117
-
// force *.js files by default
118
-
constinfo=path.parse(filepath);
119
-
return`${path.join(info.dir, info.name)}.js`;
120
-
},
121
-
}
122
-
,
112
+
// force *.js files by default
113
+
constinfo=path.parse(filepath);
114
+
return`${path.join(info.dir, info.name)}.js`;
115
+
},
116
+
},
123
117
```
124
118
125
119
### `Source Maps`
@@ -133,113 +127,98 @@ npm i -D karma-sourcemap-loader
0 commit comments