Skip to content

Commit

Permalink
yarn upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvisser committed Dec 13, 2020
1 parent 7aba1da commit 7549ae1
Show file tree
Hide file tree
Showing 4 changed files with 1,635 additions and 1,332 deletions.
22 changes: 19 additions & 3 deletions karma.conf.ts → karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as karma from 'karma';

// Karma configuration
// Generated on Wed May 27 2020 14:52:46 GMT-0400 (Eastern Daylight Time)

module.exports = (config: karma.Config): void => {
module.exports = (config) => {
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
Expand All @@ -25,8 +24,25 @@ module.exports = (config: karma.Config): void => {
// list of files / patterns to exclude
exclude: [],

karmaTypescriptConfig: {
bundlerOptions: {
acornOptions: {
ecmaVersion: 11,
},
transforms: [
require('karma-typescript-es6-transform')()
]
}
},

// list of files / patterns to load in the browser
files: ['src/*.ts', 'src/**/*.ts', 'test/*.ts', 'test/**/*.ts'],
files: [
'node_modules/@babel/polyfill/dist/polyfill.js',
'src/*.ts',
'src/**/*.ts',
'test/*.ts',
'test/**/*.ts'
],

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
],
"dependencies": {},
"devDependencies": {
"@babel/polyfill": "^7.12.1",
"@types/jasmine": "^3.5.10",
"@types/karma": "^5.0.0",
"@types/node": "^14.0.5",
Expand All @@ -53,6 +54,7 @@
"karma-jasmine": "^3.2.0",
"karma-spec-reporter": "^0.0.32",
"karma-typescript": "^5.0.3",
"karma-typescript-es6-transform": "^5.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"release-it": "^13.6.1",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"strict": true,
"target": "es5",
"typeRoots": ["node_modules/@types"],
"types": ["node"]
}
"types": ["jasmine", "node"]
},
"exclude": ["node_modules"]
}
Loading

0 comments on commit 7549ae1

Please sign in to comment.