[Tech]: Start migrating to Jest for tests (#9610)
* tech: investigating karma + jest mix * tech: migrating tests to jest * tech: moved anoter test file to jest * test: migrated two more test files to jest * test: updated readme and made test fail to verify that it causes CI build failure * tech: added code coverage for jest tests * tech: testing codecov coverage * tech: migrated more tests * tech: migrated template srv to typescript and the tests to jest * tech: minor build fix * tech: build fixes * build: another attempt at fixing go test with coverage
Showing
jest.config.js
0 → 100644
... | ... | @@ -12,6 +12,7 @@ |
"devDependencies": { | ||
"@types/d3": "^4.10.1", | ||
"@types/enzyme": "^2.8.9", | ||
"@types/jest": "^21.1.4", | ||
"@types/node": "^8.0.31", | ||
"@types/react": "^16.0.5", | ||
"@types/react-dom": "^15.5.4", | ||
... | ... | @@ -22,8 +23,8 @@ |
"babel-loader": "^7.1.2", | ||
"babel-preset-es2015": "^6.24.1", | ||
"css-loader": "^0.28.7", | ||
"enzyme": "^3.0.0", | ||
"enzyme-adapter-react-16": "^1.0.0", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.1", | ||
"es6-promise": "^3.0.2", | ||
"es6-shim": "^0.35.3", | ||
"expect.js": "~0.2.0", | ||
... | ... | @@ -53,11 +54,11 @@ |
"html-loader": "^0.5.1", | ||
"html-webpack-plugin": "^2.30.1", | ||
"husky": "^0.14.3", | ||
"jest": "^21.2.1", | ||
"jshint-stylish": "~2.2.1", | ||
"json-loader": "^0.5.7", | ||
"karma": "1.7.0", | ||
"karma-chrome-launcher": "~2.2.0", | ||
"karma-coverage": "1.1.1", | ||
"karma-expect": "~1.1.3", | ||
"karma-mocha": "~1.3.0", | ||
"karma-phantomjs-launcher": "1.0.4", | ||
... | ... | @@ -82,6 +83,7 @@ |
"sinon": "1.17.6", | ||
"systemjs": "0.20.19", | ||
"systemjs-plugin-css": "^0.1.36", | ||
"ts-jest": "^21.1.3", | ||
"ts-loader": "^2.3.7", | ||
"tslint": "^5.7.0", | ||
"tslint-loader": "^3.5.3", | ||
... | ... | @@ -97,8 +99,10 @@ |
"watch": "./node_modules/.bin/webpack --progress --colors --watch --config scripts/webpack/webpack.dev.js", | ||
"build": "./node_modules/.bin/grunt build", | ||
"test": "./node_modules/.bin/grunt test", | ||
"test-ci": "./node_modules/.bin/grunt test --coverage=true", | ||
"lint": "./node_modules/.bin/tslint -c tslint.json --project tsconfig.json --type-check", | ||
"watch-test": "./node_modules/grunt-cli/bin/grunt karma:dev" | ||
"karma": "./node_modules/grunt-cli/bin/grunt karma:dev", | ||
"jest": "./node_modules/jest-cli/bin/jest --notify --watch" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
... | ... |
public/app/core/angular_wrappers.ts
0 → 100644
This diff is collapsed.
Click to expand it.
public/app/core/time_series.js
deleted
100644 → 0
public/app/core/utils/kbn.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
public/app/core/utils/kbn.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
public/test/jest-setup.ts
0 → 100644
public/test/jest-shim.ts
0 → 100644
public/test/test-main.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment