Skip to content

Commit a074e97

Browse files
Only change Karma for Firestore
1 parent b295f20 commit a074e97

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

config/karma.base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ const config = {
5858
// available preprocessors:
5959
// https://npmjs.org/browse/keyword/karma-preprocessor
6060
preprocessors: {
61-
'**/test/**/*.ts': ['webpack', 'sourcemap']
61+
'test/**/*.ts': ['webpack', 'sourcemap'],
62+
'src/**/*.test.ts': ['webpack', 'sourcemap']
6263
},
6364

6465
mime: { 'text/x-typescript': ['ts', 'tsx'] },

packages/firestore/karma.conf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ module.exports = function (config) {
2323
// files to load into karma
2424
files: getTestFiles(argv),
2525

26+
preprocessors: {
27+
'**/test/*.ts': ['webpack', 'sourcemap'],
28+
},
29+
2630
// frameworks to use
2731
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
2832
frameworks: ['mocha'],

0 commit comments

Comments
 (0)