Skip to content

Commit c4f58a7

Browse files
committed
second tour
1 parent 7d076f8 commit c4f58a7

File tree

200 files changed

+119155
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+119155
-0
lines changed

‎.DS_Store

10 KB
Binary file not shown.

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
coverage
3+
__pycache__
4+
dist

‎babel.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', {targets: {node: 'current'}}],
4+
'@babel/preset-typescript',
5+
]/* ,
6+
plugins: ["@babel/plugin-syntax-dynamic-import"] */
7+
};

‎fff.code-workspace

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"typescript.tsdk": "node_modules/typescript/lib"
9+
}
10+
}

‎jest.config.js

+195
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
// For a detailed explanation regarding each configuration property, visit:
2+
// https://jestjs.io/docs/en/configuration.html
3+
4+
module.exports = {
5+
// All imported modules in your tests should be mocked automatically
6+
//automock: false,
7+
8+
// Stop running tests after `n` failures
9+
// bail: 0,
10+
11+
// Respect "browser" field in package.json when resolving modules
12+
// browser: false,
13+
14+
// The directory where Jest should store its cached dependency information
15+
// cacheDirectory: "/private/var/folders/2j/s40wkj715_14hqf2hpdpf2_h0000gn/T/jest_dx",
16+
17+
// Automatically clear mock calls and instances between every test
18+
clearMocks: true,
19+
20+
// Indicates whether the coverage information should be collected while executing the test
21+
// collectCoverage: false,
22+
23+
// An array of glob patterns indicating a set of files for which coverage information should be collected
24+
// collectCoverageFrom: null,
25+
26+
// The directory where Jest should output its coverage files
27+
coverageDirectory: "coverage",
28+
29+
// An array of regexp pattern strings used to skip coverage collection
30+
// coveragePathIgnorePatterns: [
31+
// "/node_modules/"
32+
// ],
33+
34+
// A list of reporter names that Jest uses when writing coverage reports
35+
// coverageReporters: [
36+
// "json",
37+
// "text",
38+
// "lcov",
39+
// "clover"
40+
// ],
41+
42+
// An object that configures minimum threshold enforcement for coverage results
43+
// coverageThreshold: null,
44+
45+
// A path to a custom dependency extractor
46+
// dependencyExtractor: null,
47+
48+
// Make calling deprecated APIs throw helpful error messages
49+
// errorOnDeprecated: false,
50+
51+
// Force coverage collection from ignored files using an array of glob patterns
52+
// forceCoverageMatch: [],
53+
54+
// A path to a module which exports an async function that is triggered once before all test suites
55+
// globalSetup: null,
56+
57+
// A path to a module which exports an async function that is triggered once after all test suites
58+
// globalTeardown: null,
59+
60+
// A set of global variables that need to be available in all test environments
61+
globals: {
62+
window: {},
63+
this: {},
64+
globalThis: {},
65+
Config: {
66+
Modes: {}
67+
}
68+
},
69+
70+
// 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.
71+
// maxWorkers: "50%",
72+
73+
// An array of directory names to be searched recursively up from the requiring module's location
74+
moduleDirectories: [
75+
"node_modules"
76+
],
77+
78+
// An array of file extensions your modules use
79+
// moduleFileExtensions: [
80+
// "js",
81+
// "json",
82+
// "jsx",
83+
// "ts",
84+
// "tsx",
85+
// "node"
86+
// ],
87+
88+
// A map from regular expressions to module names that allow to stub out resources with a single module
89+
// moduleNameMapper: {},
90+
91+
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
92+
// modulePathIgnorePatterns: [],
93+
94+
// Activates notifications for test results
95+
// notify: false,
96+
97+
// An enum that specifies notification mode. Requires { notify: true }
98+
// notifyMode: "failure-change",
99+
100+
// A preset that is used as a base for Jest's configuration
101+
// preset: null,
102+
103+
// Run tests from one or more projects
104+
// projects: null,
105+
106+
// Use this configuration option to add custom reporters to Jest
107+
// reporters: undefined,
108+
109+
// Automatically reset mock state between every test
110+
// resetMocks: false,
111+
112+
// Reset the module registry before running each individual test
113+
// resetModules: false,
114+
115+
// A path to a custom resolver
116+
// resolver: null,
117+
118+
// Automatically restore mock state between every test
119+
// restoreMocks: false,
120+
121+
// The root directory that Jest should scan for tests and modules within
122+
// rootDir: null,
123+
124+
// A list of paths to directories that Jest should use to search for files in
125+
roots: [
126+
'<rootDir>/src/tests',
127+
],
128+
129+
// Allows you to use a custom runner instead of Jest's default test runner
130+
// runner: "jest-runner",
131+
132+
// The paths to modules that run some code to configure or set up the testing environment before each test
133+
// setupFiles: [],
134+
135+
// A list of paths to modules that run some code to configure or set up the testing framework before each test
136+
// setupFilesAfterEnv: [],
137+
138+
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
139+
// snapshotSerializers: [],
140+
141+
// The test environment that will be used for testing
142+
testEnvironment: "node",
143+
144+
// Options that will be passed to the testEnvironment
145+
// testEnvironmentOptions: {},
146+
147+
// Adds a location field to test results
148+
// testLocationInResults: false,
149+
150+
// The glob patterns Jest uses to detect test files
151+
// testMatch: [
152+
// "**/__tests__/**/*.[jt]s?(x)",
153+
// "**/?(*.)+(spec|test).[tj]s?(x)"
154+
// ],
155+
156+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
157+
// testPathIgnorePatterns: [
158+
// "/node_modules/"
159+
// ],
160+
161+
// The regexp pattern or array of patterns that Jest uses to detect test files
162+
// testRegex: [],
163+
164+
// This option allows the use of a custom results processor
165+
// testResultsProcessor: null,
166+
167+
// This option allows use of a custom test runner
168+
// testRunner: "jasmine2",
169+
170+
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
171+
// testURL: "http://localhost",
172+
173+
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
174+
// timers: "real",
175+
176+
// A map from regular expressions to paths to transformers
177+
// transform: null,
178+
179+
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
180+
// transformIgnorePatterns: [
181+
// "/node_modules/"
182+
// ],
183+
184+
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
185+
// unmockedModulePathPatterns: undefined,
186+
187+
// Indicates whether each individual test should be reported during the run
188+
// verbose: null,
189+
190+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
191+
// watchPathIgnorePatterns: [],
192+
193+
// Whether to use watchman for file crawling
194+
// watchman: true,
195+
};

0 commit comments

Comments
 (0)