You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***$Git:** ignore Jest test coverage reports ([7ec2d5e](https://github.com/johnnymillergh/typescript-playground/commit/7ec2d5ef4ef4a19319ce577a2a9b83fd600b9f11))
7
+
***$Jest:** update Jest configuration ([0c52cf7](https://github.com/johnnymillergh/typescript-playground/commit/0c52cf71a4401d7b64fb550a7400a0dffc74aef7))
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
Here is the highlights of **TypeScript Playground**:
18
18
19
19
1. Based on the most modern and latest [**Type**Script](https://github.com/microsoft/TypeScript) - [](https://www.npmjs.com/package/typescript)
20
-
2.[TSLint](https://palantir.github.io/tslint/rules) support
20
+
2.[TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint#getting-started--installation) support
21
21
3. Web browser free. Run code in the console of latest version WebStorm
22
22
4. Demonstrate the features of TypeScript:
23
23
- Basic types
@@ -26,6 +26,8 @@ Here is the highlights of **TypeScript Playground**:
// Automatically clear mock calls and instances between every tests
14
+
// Automatically clear mock calls and instances between every test
15
15
clearMocks: true,
16
16
17
-
// Indicates whether the coverage information should be collected while executing the tests
18
-
// collectCoverage: false,
17
+
// Indicates whether the coverage information should be collected while executing the test
18
+
collectCoverage: true,
19
19
20
20
// An array of glob patterns indicating a set of files for which coverage information should be collected
21
21
// collectCoverageFrom: undefined,
22
22
23
23
// The directory where Jest should output its coverage files
24
-
coverageDirectory: 'coverage',
24
+
coverageDirectory: 'jest-coverage',
25
25
26
26
// An array of regexp pattern strings used to skip coverage collection
27
-
// coveragePathIgnorePatterns: [
28
-
// "\\\\node_modules\\\\"
29
-
// ],
27
+
coveragePathIgnorePatterns: [
28
+
'\\\\node_modules\\\\'
29
+
],
30
30
31
31
// Indicates which provider should be used to instrument code for coverage
32
32
coverageProvider: 'v8',
33
33
34
34
// A list of reporter names that Jest uses when writing coverage reports
35
-
// coverageReporters: [
36
-
// "json",
37
-
// "text",
38
-
// "lcov",
39
-
// "clover"
40
-
// ],
35
+
coverageReporters: [
36
+
'json',
37
+
'text',
38
+
'lcov',
39
+
'clover'
40
+
],
41
41
42
42
// An object that configures minimum threshold enforcement for coverage results
43
43
// coverageThreshold: undefined,
@@ -51,13 +51,13 @@ module.exports = {
51
51
// Force coverage collection from ignored files using an array of glob patterns
52
52
// forceCoverageMatch: [],
53
53
54
-
// A path to a module which exports an async function that is triggered once before all tests suites
54
+
// A path to a module which exports an async function that is triggered once before all test suites
55
55
// globalSetup: undefined,
56
56
57
-
// A path to a module which exports an async function that is triggered once after all tests suites
57
+
// A path to a module which exports an async function that is triggered once after all test suites
58
58
// globalTeardown: undefined,
59
59
60
-
// A set of global variables that need to be available in all tests environments
60
+
// A set of global variables that need to be available in all test environments
61
61
// globals: {},
62
62
63
63
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
@@ -84,84 +84,83 @@ module.exports = {
84
84
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
85
85
// modulePathIgnorePatterns: [],
86
86
87
-
// Activates notifications for tests results
87
+
// Activates notifications for test results
88
88
// notify: false,
89
89
90
90
// An enum that specifies notification mode. Requires { notify: true }
91
91
// notifyMode: "failure-change",
92
92
93
93
// A preset that is used as a base for Jest's configuration
94
-
preset: 'ts-jest',
94
+
// preset: undefined,
95
95
96
96
// Run tests from one or more projects
97
97
// projects: undefined,
98
98
99
99
// Use this configuration option to add custom reporters to Jest
100
100
// reporters: undefined,
101
101
102
-
// Automatically reset mock state between every tests
102
+
// Automatically reset mock state between every test
103
103
// resetMocks: false,
104
104
105
-
// Reset the module registry before running each individual tests
105
+
// Reset the module registry before running each individual test
106
106
// resetModules: false,
107
107
108
108
// A path to a custom resolver
109
109
// resolver: undefined,
110
110
111
-
// Automatically restore mock state between every tests
111
+
// Automatically restore mock state between every test
112
112
// restoreMocks: false,
113
113
114
114
// The root directory that Jest should scan for tests and modules within
115
115
// rootDir: undefined,
116
116
117
117
// A list of paths to directories that Jest should use to search for files in
118
-
roots: [
119
-
'<rootDir>/src',
120
-
'<rootDir>/tests'
121
-
],
118
+
// roots: [
119
+
// "<rootDir>"
120
+
// ],
122
121
123
-
// Allows you to use a custom runner instead of Jest's default tests runner
122
+
// Allows you to use a custom runner instead of Jest's default test runner
124
123
// runner: "jest-runner",
125
124
126
-
// The paths to modules that run some code to configure or set up the testing environment before each tests
125
+
// The paths to modules that run some code to configure or set up the testing environment before each test
127
126
// setupFiles: [],
128
127
129
-
// A list of paths to modules that run some code to configure or set up the testing framework before each tests
128
+
// A list of paths to modules that run some code to configure or set up the testing framework before each test
130
129
// setupFilesAfterEnv: [],
131
130
132
-
// The number of seconds after which a tests is considered as slow and reported as such in the results.
131
+
// The number of seconds after which a test is considered as slow and reported as such in the results.
133
132
// slowTestThreshold: 5,
134
133
135
134
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
136
135
// snapshotSerializers: [],
137
136
138
-
// The tests environment that will be used for testing
137
+
// The test environment that will be used for testing
139
138
testEnvironment: 'node',
140
139
141
140
// Options that will be passed to the testEnvironment
142
141
// testEnvironmentOptions: {},
143
142
144
-
// Adds a location field to tests results
143
+
// Adds a location field to test results
145
144
// testLocationInResults: false,
146
145
147
-
// The glob patterns Jest uses to detect tests files
146
+
// The glob patterns Jest uses to detect test files
148
147
testMatch: [
149
148
'**/__tests__/**/*.[jt]s?(x)',
150
149
'**/?(*.)+(spec|tests).[tj]s?(x)'
151
150
],
152
151
153
-
// An array of regexp pattern strings that are matched against all tests paths, matched tests are skipped
152
+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
154
153
testPathIgnorePatterns: [
155
154
'\\\\node_modules\\\\'
156
155
],
157
156
158
-
// The regexp pattern or array of patterns that Jest uses to detect tests files
157
+
// The regexp pattern or array of patterns that Jest uses to detect test files
159
158
// testRegex: [],
160
159
161
160
// This option allows the use of a custom results processor
162
161
// testResultsProcessor: undefined,
163
162
164
-
// This option allows use of a custom tests runner
163
+
// This option allows use of a custom test runner
165
164
// testRunner: "jasmine2",
166
165
167
166
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
@@ -184,7 +183,7 @@ module.exports = {
184
183
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
185
184
// unmockedModulePathPatterns: undefined,
186
185
187
-
// Indicates whether each individual tests should be reported during the run
186
+
// Indicates whether each individual test should be reported during the run
188
187
// verbose: undefined,
189
188
190
189
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
0 commit comments