Skip to content

Commit

Permalink
ENG-0000 - Update nepal-client-libs to use node18 (#839)
Browse files Browse the repository at this point in the history
This completely removed the karma-typescript-es6-transform plugin and
relies in newer language features instead.

All karma configurations have been consolidated into a single shared
config that is invoked by each package's config.
  • Loading branch information
mcnielsen authored Nov 7, 2024
1 parent 3acd41f commit cf39117
Show file tree
Hide file tree
Showing 69 changed files with 16,653 additions and 3,510 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ coverage
packages/*/coverage
packages/*/dist

package-lock.json

#needed to use hub in the pipeline
bin
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
package-lock=false
10 changes: 4 additions & 6 deletions packages/subscriptions/karma.conf.js → karma.shared.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (config) {
module.exports = function( config, name ) {
config.set({

frameworks: ["mocha", "karma-typescript"],
Expand All @@ -25,20 +25,18 @@ module.exports = function (config) {
karmaTypescriptConfig: {
bundlerOptions: {
acornOptions: {
ecmaVersion: 8,
ecmaVersion: 2018,
},
},
tsconfig: "tsconfig.spec.json",
reports:
{
"html": {
"directory": "./../../coverage/subscriptions-client",
"subdirectory": "report"
"directory": `../../coverage/${name}`
},
"text-summary": "",
"json-summary": {
"directory": "./../../coverage/subscriptions-client",
"subdirectory": "summary",
"directory": `../../coverage/${name}`,
"filename": "json-summary.json"
}
},
Expand Down
Loading

0 comments on commit cf39117

Please sign in to comment.