Skip to content

Commit 3fbb6d6

Browse files
committed
Extend preprocessor in vertex ai karma conf
1 parent 4d6a5ce commit 3fbb6d6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/karma.base.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const config = {
6060
preprocessors: {
6161
'test/**/*.ts': ['webpack', 'sourcemap'],
6262
'src/**/*.test.ts': ['webpack', 'sourcemap'],
63-
'integration/**/*.ts': ['webpack', 'sourcemap']
6463
},
6564

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

packages/vertexai/karma.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ module.exports = function (config) {
3434
const karmaConfig = {
3535
...karmaBase,
3636

37+
preprocessors: {
38+
...karmaBase.preprocessors,
39+
'integration/**/*.ts': ['webpack', 'sourcemap']
40+
},
41+
3742
// files to load into karma
3843
files: (() => {
3944
if (argv.integration) {

0 commit comments

Comments
 (0)