Skip to content

Commit 247362a

Browse files
committed
Give an example of e2e test
1 parent 1c59e21 commit 247362a

File tree

7 files changed

+13093
-1646
lines changed

7 files changed

+13093
-1646
lines changed

packages/metrics/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"error",
145145
{
146146
"devDependencies": [
147-
"**/test/**",
147+
"**/tests/**",
148148
"**/build-tools/**"
149149
],
150150
"optionalDependencies": false,

packages/metrics/jest.config.js

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,23 @@
11
module.exports = {
2-
'preset': 'ts-jest',
3-
'transform': {
2+
runner: 'groups',
3+
preset: 'ts-jest',
4+
transform: {
45
'^.+\\.ts?$': 'ts-jest',
56
},
6-
moduleFileExtensions: [ 'js', 'ts' ],
7-
'collectCoverageFrom': [
8-
'**/src/**/*.ts',
9-
'!**/node_modules/**',
10-
],
11-
'testMatch': ['**/?(*.)+(spec|test).ts'],
12-
'roots': [
13-
'<rootDir>/src',
14-
'<rootDir>/tests',
15-
],
16-
'testPathIgnorePatterns': [
17-
'/node_modules/',
18-
],
19-
'testEnvironment': 'node',
20-
'coveragePathIgnorePatterns': [
21-
'/node_modules/',
22-
],
23-
'coverageThreshold': {
24-
'global': {
25-
'statements': 100,
26-
'branches': 100,
27-
'functions': 100,
28-
'lines': 100,
7+
moduleFileExtensions: ['js', 'ts'],
8+
collectCoverageFrom: ['**/src/**/*.ts', '!**/node_modules/**'],
9+
testMatch: ['**/?(*.)+(spec|test).ts'],
10+
roots: ['<rootDir>/src', '<rootDir>/tests'],
11+
testPathIgnorePatterns: ['/node_modules/'],
12+
testEnvironment: 'node',
13+
coveragePathIgnorePatterns: ['/node_modules/'],
14+
coverageThreshold: {
15+
global: {
16+
statements: 100,
17+
branches: 100,
18+
functions: 100,
19+
lines: 100,
2920
},
3021
},
31-
'coverageReporters': [
32-
'json-summary',
33-
'text',
34-
'lcov' ],
35-
};
22+
coverageReporters: ['json-summary', 'text', 'lcov'],
23+
};

0 commit comments

Comments
 (0)