Skip to content

Commit 021bf27

Browse files
committed
chore: run karma test separately; nohoist karma
1 parent 2ea9106 commit 021bf27

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ module.exports = {
55
projects: ["<rootDir>/packages/*/jest.config.js"],
66
testPathIgnorePatterns: [
77
"<rootDir>/packages/add-glacier-checksum-headers-browser",
8+
"<rootDir>/packages/stream-collector-browser",
89
"<rootDir>/clients/client-.*"
910
],
1011
coveragePathIgnorePatterns: [
1112
"/node_modules/",
1213
"<rootDir>/packages/add-glacier-checksum-headers-browser",
13-
"<rootDir>/packages/crypto-sjcl-*",
14-
"<rootDir>/packages/xml-body-parser/vendor/",
14+
"<rootDir>/packages/stream-collector-browser",
1515
"<rootDir>/clients/client-.*",
1616
"/__fixtures__/"
1717
]

package.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:smithy-client": "yarn build:crypto-dependencies && lerna run --scope '@aws-sdk/client-rds-data' --include-dependencies pretest",
1515
"build:all": "yarn build:crypto-dependencies && lerna run pretest --include-dependencies --include-dependents",
1616
"pretest:all": "yarn build:all",
17-
"test:all": "jest --coverage --passWithNoTests",
17+
"test:all": "jest --coverage --passWithNoTests && lerna run test --scope @aws-sdk/stream-collector-browser @aws-sdk/hash-blob-browser",
1818
"test:functional": "jest --config tests/functional/jest.config.js --passWithNoTests",
1919
"test:integration": "cucumber.js"
2020
},
@@ -50,10 +50,18 @@
5050
"typescript": "^3.7.0",
5151
"yarn": "1.21.1"
5252
},
53-
"workspaces": [
54-
"packages/*",
55-
"clients/*"
56-
],
53+
"workspaces": {
54+
"packages": [
55+
"packages/*",
56+
"clients/*"
57+
],
58+
"nohoist": [
59+
"**/karma",
60+
"**/karma/**",
61+
"**/karma-*",
62+
"**/karma-*/**"
63+
]
64+
},
5765
"husky": {
5866
"hooks": {
5967
"pre-commit": "lint-staged",
@@ -66,4 +74,4 @@
6674
"git add"
6775
]
6876
}
69-
}
77+
}

packages/stream-collector-browser/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
"devDependencies": {
2222
"@types/jest": "^24.0.12",
2323
"jasmine-core": "^3.5.0",
24-
"karma-cli": "^2.0.0",
24+
"karma": "^4.4.1",
25+
"karma-chrome-launcher": "^3.1.0",
2526
"karma-jasmine": "^2.0.1",
2627
"karma-typescript": "^4.1.1",
2728
"puppeteer": "^2.0.0",
29+
"source-map": "^0.7.3",
2830
"typescript": "~3.4.0"
2931
}
3032
}

0 commit comments

Comments
 (0)