nanosplash 2.2.4 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.github/workflows/production.yml +57 -0
  2. package/.github/workflows/release.yml +61 -0
  3. package/README.md +17 -15
  4. package/dist/iife/nanosplash.iife.js +1 -1
  5. package/dist/module/Nanosplash.css +1 -0
  6. package/dist/module/manifest.json +6 -3
  7. package/dist/module/nanosplash.cjs.js +1 -1
  8. package/dist/module/nanosplash.es.js +244 -330
  9. package/docs/index.html +54 -430
  10. package/docs/nanosplash.iife.js +1 -1
  11. package/docs/style.css +1 -1
  12. package/docs/typedoc/assets/highlight.css +1 -50
  13. package/docs/typedoc/assets/main.js +2 -2
  14. package/docs/typedoc/assets/search.js +1 -1
  15. package/docs/typedoc/assets/style.css +32 -2
  16. package/docs/typedoc/classes/Core_Nanosplash.Nanosplash.html +1 -0
  17. package/docs/typedoc/index.html +1 -1
  18. package/docs/typedoc/modules/Core_Nanosplash.html +1 -0
  19. package/docs/typedoc/modules/types.html +1 -1
  20. package/index.html +51 -412
  21. package/jest.config.ts +194 -0
  22. package/package.json +70 -65
  23. package/src/Core/Nanosplash.ts +74 -0
  24. package/src/Core/SplashInstance.ts +154 -0
  25. package/src/Factory/NanosplashFactory.ts +73 -0
  26. package/src/Interfaces/ContextualAPIInterface.ts +8 -0
  27. package/src/Interfaces/IdentityInterface.ts +3 -0
  28. package/src/Interfaces/ImageInterface.ts +5 -0
  29. package/src/Interfaces/InsideInterface.ts +5 -0
  30. package/src/Interfaces/NanosplashInterface.ts +4 -0
  31. package/src/Interfaces/ProgressInterface.ts +5 -0
  32. package/src/Interfaces/ShowInterface.ts +5 -0
  33. package/src/Interfaces/WhileInterface.ts +5 -0
  34. package/src/main.ts +2 -6
  35. package/src/repositories/NanosplashRepository.ts +34 -55
  36. package/src/style.sass +51 -61
  37. package/src/types.d.ts +45 -200
  38. package/src/utilities/dom.spec.ts +70 -0
  39. package/src/utilities/dom.ts +17 -256
  40. package/update-all.sh +3 -0
  41. package/vite.iife.config.js +46 -18
  42. package/vite.mod.config.js +48 -12
  43. package/vite.site.config.js +0 -3
  44. package/dist/module/style.css +0 -1
  45. package/docs/typedoc/classes/Nanosplash.Nanosplash-1.html +0 -56
  46. package/docs/typedoc/classes/types.Nanosplash.html +0 -56
  47. package/docs/typedoc/modules/Nanosplash.html +0 -1
  48. package/src/Exceptions/Exception.ts +0 -12
  49. package/src/Exceptions/IllegalArgumentException.ts +0 -9
  50. package/src/Exceptions/InvalidDestinationException.ts +0 -9
  51. package/src/Exceptions/MissingResourceException.ts +0 -9
  52. package/src/Nanosplash.ts +0 -484
  53. package/update-latest.sh +0 -21
package/index.html CHANGED
@@ -3,10 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <link rel="icon" type="image/svg+xml" href="favicon.svg" />
6
- <link
7
- href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
8
- rel="stylesheet"
9
- />
6
+ <script src="https://cdn.tailwindcss.com"></script>
10
7
  <link href="https://cdn.lineicons.com/3.0/lineicons.css" rel="stylesheet" />
11
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
12
9
  <title>Nanosplash</title>
@@ -15,421 +12,63 @@
15
12
  <meta name="author" content="Isak Hauge" />
16
13
  </head>
17
14
  <body class="flex flex-col justify-between">
18
- <main class="bg-gray-100 flex-grow">
19
- <div id="title" class="bg-gray-800">
20
- <section class="pt-6 pb-2 md:py-12 text-white">
21
- <div
22
- class="
23
- absolute
24
- top-2
25
- left-2
26
- uppercase
27
- bg-gray-600
28
- text-white
29
- pill
30
- font-mono
31
- tracking-wider
32
- rounded
33
- "
34
- >
35
- Title section
36
- </div>
37
- <div class="px-10 flex flex-col justify-center items-center">
38
- <span class="animate-spin mb-3 md:mb-6 text-6xl md:text-7xl"
39
- >🍩</span
40
- >
41
- <h1 class="text-3xl md:text-4xl">Nanosplash</h1>
42
- <h2 class="text-lg md:text-xl md:mt-1 font-thin">
43
- The tiny loading screen
44
- </h2>
45
- <div
46
- class="
47
- mt-3
48
- md:mt-6
49
- text-xs
50
- sm:text-sm
51
- font-mono
52
- p-2
53
- bg-gray-700
54
- rounded
55
- "
56
- >
57
- loading.show(<span class="text-green-400">text</span
58
- >).inside(<span class="text-green-400">element</span>)
59
- </div>
60
- </div>
61
- </section>
62
- <section class="py-3 bg-gray-800">
63
- <div class="flex flex-col space-y-2">
64
- <div class="flex space-x-2 justify-center">
65
- <img src="https://badgen.net/npm/v/nanosplash" />
66
- <img src="https://badgen.net/npm/types/nanosplash" />
67
- <img src="https://badgen.net/npm/dw/nanosplash" />
68
- </div>
69
- <div class="flex space-x-2 justify-center">
70
- <img src="https://badgen.net/bundlephobia/min/nanosplash" />
71
- <img
72
- src="https://badgen.net/bundlephobia/tree-shaking/nanosplash"
73
- />
74
- </div>
75
- </div>
76
- </section>
77
- </div>
78
- <section class="flex flex-col items-center py-10 md:pt-16 md:pb-10">
79
- <div
80
- class="
81
- text-center text-xl
82
- md:text-2xl
83
- font-light
84
- text-gray-600
85
- flex
86
- justify-center
87
- mb-2
88
- md:mb-3
89
- "
90
- >
91
- API reference documentation
15
+ <div class="w-100 min-h-screen flex flex-col justify-center items-center">
16
+ <div class="text-3xl">Nanosplash</div>
17
+ <div class="mt-3">Small. Simple. Reliable.</div>
18
+ <div class="flex flex-col space-y-2 my-10">
19
+ <div class="flex space-x-2 justify-center">
20
+ <img src="https://badgen.net/npm/v/nanosplash" />
21
+ <img src="https://badgen.net/npm/types/nanosplash" />
22
+ <img src="https://badgen.net/npm/dw/nanosplash" />
23
+ </div>
24
+ <div class="flex space-x-2 justify-center">
25
+ <img src="https://badgen.net/bundlephobia/min/nanosplash" />
26
+ <img
27
+ src="https://badgen.net/bundlephobia/tree-shaking/nanosplash"
28
+ />
92
29
  </div>
93
- <div
94
- class="text-center text-gray-500 flex font-light justify-center mb-6"
95
- >
96
- Please visit the&nbsp;<a
97
- href="/nanosplash/typedoc/index.html"
98
- class="text-blue-400"
99
- >documentation</a
100
- >
30
+ </div>
31
+ <div class="text-white bg-slate-700 p-3 rounded shadow-xl font-mono text-sm">ns.show('text').inside('#myDiv')</div>
32
+ </div>
33
+ <div class="grid grid-cols-2 gap-1">
34
+ <div id="a" class="p-20 bg-slate-100 flex flex-col items-center">
35
+ <div class="text-xl mb-10">Give user progress feedback</div>
36
+ <div class="text-white bg-slate-800 p-5 rounded-lg shadow-2xl font-mono text-sm">
37
+ ns.img(src).progress(<br>
38
+ &nbsp;&nbsp;[promise1, 'Loading A'],<br>
39
+ &nbsp;&nbsp;[promise2, 'Loading B'],<br>
40
+ &nbsp;&nbsp;[promise3, 'Loading C'],<br>
41
+ ).inside('#myDiv')
101
42
  </div>
102
- <div class="container px-10">
103
- <div
104
- class="
105
- text-center text-xl
106
- md:text-2xl
107
- font-light
108
- text-gray-600
109
- flex
110
- justify-center
111
- mb-2
112
- md:mb-3
113
- "
114
- >
115
- Demo
116
- </div>
117
- <div class="text-center text-gray-500 flex font-light justify-center">
118
- Play around with Nanosplash using the<br />
119
- controls below. The demo serves as a<br />
120
- showcase of what it has to offer.
121
- </div>
43
+ </div>
44
+ <div id="b" class="p-20 bg-slate-100 flex flex-col items-center">
45
+ <div class="text-xl mb-10">Handle async functions</div>
46
+ <div class="text-white bg-slate-800 p-5 rounded-lg shadow-2xl font-mono text-sm">
47
+ ns.while(promise).show('Loading ...').inside('#myDiv')
122
48
  </div>
123
- </section>
124
- <section class="flex flex-col items-center pt-0 pb-10 md:pt-0 md:pb-20">
125
- <div class="container px-10 md:max-w-3xl">
126
- <div class="flex flex-col mb-5">
127
- <label for="splash-src" class="text-gray-600 mb-2"
128
- >Splash image URL</label
129
- >
130
- <input
131
- type="text"
132
- name="splash-src"
133
- id="splash-src"
134
- value="doughnut.png"
135
- class="
136
- py-3
137
- px-4
138
- text-gray-400
139
- bg-white
140
- appearance-none
141
- rounded-lg
142
- "
143
- />
144
- </div>
145
- <div class="grid sm:grid-cols-1 md:grid-cols-2 gap-5">
146
- <div class="flex flex-col">
147
- <label class="text-gray-600 mb-2" for="anim">Animation</label>
148
- <select
149
- class="
150
- py-3
151
- px-4
152
- text-gray-400
153
- bg-white
154
- cursor-pointer
155
- appearance-none
156
- rounded-lg
157
- "
158
- name="anim"
159
- id="anim"
160
- >
161
- <option value="none" selected disabled>Choose animation</option>
162
- <option value="none">None</option>
163
- <option value="pulse">Pulse</option>
164
- <option value="spin">Spin</option>
165
- </select>
166
- </div>
167
- <div class="flex flex-col">
168
- <label class="text-gray-600 mb-2" for="elem"
169
- >Show inside element</label
170
- >
171
- <select
172
- class="
173
- py-3
174
- px-4
175
- text-gray-400
176
- bg-white
177
- cursor-pointer
178
- appearance-none
179
- rounded-lg
180
- "
181
- name="elem"
182
- id="elem"
183
- >
184
- <option value="none" selected disabled>Choose location</option>
185
- <option value="body">Fullscreen (3s)</option>
186
- <option value="#title">Title section</option>
187
- <option value="#col1">Column 1</option>
188
- <option value="#col2">Column 2</option>
189
- <option value="#col3">Column 3</option>
190
- </select>
191
- </div>
192
- <div class="flex flex-col">
193
- <label class="text-gray-600 mb-2" for="text">Loading text</label>
194
- <input
195
- class="
196
- py-3
197
- px-4
198
- appearance-none
199
- rounded-lg
200
- bg-white
201
- text-gray-400
202
- "
203
- type="text"
204
- name="text"
205
- id="text"
206
- value="Loading assets ..."
207
- />
208
- </div>
209
- <div class="flex flex-col">
210
- <label class="text-gray-600 mb-2" for="show"
211
- >Display loading screen</label
212
- >
213
- <div
214
- id="show"
215
- class="
216
- bg-purple-900
217
- text-gray-300
218
- cursor-pointer
219
- py-3
220
- px-4
221
- rounded-lg
222
- "
223
- >
224
- Show loading screen
225
- </div>
226
- </div>
227
- </div>
49
+ </div>
50
+ <div id="c" class="p-20 bg-slate-100 flex flex-col items-center">
51
+ <div class="text-xl mb-10">Display fullscreen</div>
52
+ <div class="text-white bg-slate-800 p-5 rounded-lg shadow-2xl font-mono text-sm">
53
+ const splash = ns.show('Fullscreen text')<br>
54
+ splash.moveTo('#myDiv')<br>
55
+ splash.remove()
228
56
  </div>
229
- </section>
230
- <section class="flex flex-col items-center pb-20">
231
- <div class="container px-10">
232
- <div class="grid sm:grid-cols-1 lg:grid-cols-3 gap-10">
233
- <div id="col1" class="bg-white rounded-2xl shadow-lg">
234
- <div class="relative p-8 rounded-2xl">
235
- <div
236
- class="
237
- absolute
238
- top-2
239
- left-2
240
- uppercase
241
- bg-gray-500
242
- text-white
243
- pill
244
- font-mono
245
- tracking-wider
246
- rounded
247
- "
248
- >
249
- Column 1
250
- </div>
251
- <div class="text-4xl text-center">
252
- <i class="lni lni-bolt-alt"></i>
253
- </div>
254
- <div class="text-xl font-medium my-6 text-center">
255
- Tiny and lightning fast
256
- </div>
257
- <div>It is only 6kB in size, and it's lightning fast.</div>
258
- </div>
259
- </div>
260
- <div id="col2" class="bg-white rounded-2xl shadow-lg">
261
- <div class="relative p-8 rounded-2xl">
262
- <div
263
- class="
264
- absolute
265
- top-2
266
- left-2
267
- uppercase
268
- bg-gray-500
269
- text-white
270
- pill
271
- font-mono
272
- tracking-wider
273
- rounded
274
- "
275
- >
276
- Column 2
277
- </div>
278
- <div class="text-4xl text-center">
279
- <i class="lni lni-code"></i>
280
- </div>
281
- <div class="text-xl font-medium my-6 text-center">
282
- Vanilla JS
283
- </div>
284
- <div>
285
- Written from the ground up in vanilla JavaScript and comes
286
- without any libraries.
287
- </div>
288
- </div>
289
- </div>
290
- <div id="col3" class="bg-white rounded-2xl shadow-lg">
291
- <div class="relative p-8 rounded-2xl">
292
- <div
293
- class="
294
- absolute
295
- top-2
296
- left-2
297
- uppercase
298
- bg-gray-500
299
- text-white
300
- pill
301
- font-mono
302
- tracking-wider
303
- rounded
304
- "
305
- >
306
- Column 3
307
- </div>
308
- <div class="text-4xl text-center">
309
- <i class="lni lni-grid-alt"></i>
310
- </div>
311
- <div class="text-xl font-medium my-6 text-center">
312
- ESM + CJS
313
- </div>
314
- <div>
315
- Nanosplash comes in both ES and CJS modules, making it easy
316
- for you to import it into your code.
317
- </div>
318
- </div>
319
- </div>
320
- </div>
57
+ </div>
58
+ <div id="d" class="p-20 bg-slate-100 flex flex-col items-center">
59
+ <div class="text-xl mb-10">Display multiple, independent instances</div>
60
+ <div class="text-white bg-slate-800 p-5 rounded-lg shadow-2xl font-mono text-sm">
61
+ ns.img(src).show('Loading component A').inside('#a')<br>
62
+ ns.show('Loading component A').inside('#b')<br>
63
+ ns.show('Loading component A').inside('#c')<br>
64
+ <br><br>
65
+ ns.hide() // Removes instances in a FIFO manner.<br>
66
+ ns.hideAll() // Removes all instances.
321
67
  </div>
322
- </section>
323
- </main>
68
+ </div>
69
+ </div>
324
70
  <footer>
325
- <section class="py-4 flex justify-center flex-grow-0">
326
- <div class="container mx-5">
327
- <div class="flex space-x-3 justify-center items-center text-gray-600">
328
- <div class="text-2xl">
329
- <i class="lni lni-github-original"></i>
330
- </div>
331
- <div>
332
- Developed by
333
- <a
334
- class="text-purple-400 hover:text-purple-500"
335
- href="https://github.com/isakhauge"
336
- target="_blank"
337
- >Isak Hauge</a
338
- >
339
- </div>
340
- </div>
341
- </div>
342
- </section>
343
71
  <script type="module" src="/src/main.ts"></script>
344
-
345
- <!-- Demo -->
346
- <script>
347
- const ref = function (v) {
348
- return document.querySelector(v)
349
- }
350
-
351
- // Elements
352
- const textSplashElem = ref('#splash-src')
353
- const selectAnimElem = ref('#anim')
354
- const selectDestinationElem = ref('#elem')
355
- const textElem = ref('#text')
356
- const showBtn = ref('#show')
357
-
358
- const cache = {
359
- animation: 'none',
360
- domSelector: 'body',
361
- text: textElem.value,
362
- showNextTime: true,
363
- }
364
-
365
- const text = (function (postfix) {
366
- return {
367
- show: 'Show ' + postfix,
368
- hide: 'Hide ' + postfix,
369
- }
370
- })('loading screen')
371
-
372
- const display = function () {
373
- const doughnutSrc =
374
- 'https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/doughnut_1f369.png'
375
- showBtn.innerText = 'Hide loading screen'
376
- cache.showNextTime = false
377
- const isDoughnut = textSplashElem.value === 'doughnut.png'
378
- const splashSrc = isDoughnut ? doughnutSrc : textSplashElem.value
379
- const text = textElem.value
380
- const anim = selectAnimElem.value
381
- const elem = selectDestinationElem.value
382
- loading
383
- .configure({
384
- splash: { animation: cache.animation, src: splashSrc },
385
- })
386
- .show(cache.text)
387
- .inside(cache.domSelector)
388
- }
389
-
390
- const hide = function () {
391
- showBtn.innerText = 'Show loading screen'
392
- cache.showNextTime = true
393
- loading.hide()
394
- }
395
-
396
- const onSelectAnim = function ({ target }) {
397
- cache.animation = target.value
398
- }
399
- const onSelectDestination = function ({ target }) {
400
- cache.domSelector = target.value
401
- }
402
- const onInputText = function ({ target }) {
403
- cache.text = target.value
404
- }
405
- const onClickBtn = function () {
406
- if (cache.showNextTime) {
407
- display()
408
- const isBody = cache.domSelector === 'body'
409
- if (isBody) {
410
- setTimeout(hide, 3000)
411
- }
412
- } else {
413
- hide()
414
- }
415
- }
416
-
417
- selectAnimElem.addEventListener('input', onSelectAnim)
418
- selectDestinationElem.addEventListener('input', onSelectDestination)
419
- textElem.addEventListener('input', onInputText)
420
- showBtn.addEventListener('click', onClickBtn)
421
- </script>
422
-
423
- <!-- Nanosplash -->
424
- <script>
425
- window.addEventListener('load', () => {
426
- window.loading.configure({
427
- splash: {
428
- src: 'https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/285/doughnut_1f369.png',
429
- },
430
- })
431
- })
432
- </script>
433
72
  </footer>
434
73
  <style>
435
74
  body {
package/jest.config.ts ADDED
@@ -0,0 +1,194 @@
1
+ /*
2
+ * For a detailed explanation regarding each configuration property and type check, visit:
3
+ * https://jestjs.io/docs/configuration
4
+ */
5
+
6
+ export default {
7
+ // All imported modules in your tests should be mocked automatically
8
+ // automock: false,
9
+
10
+ // Stop running tests after `n` failures
11
+ // bail: 0,
12
+
13
+ // The directory where Jest should store its cached dependency information
14
+ // cacheDirectory: "/private/var/folders/zc/vybtlxpn4dn4wr85nb3sh7lh0000gn/T/jest_dx",
15
+
16
+ // Automatically clear mock calls and instances between every test
17
+ clearMocks: true,
18
+
19
+ // Indicates whether the coverage information should be collected while executing the test
20
+ collectCoverage: true,
21
+
22
+ // An array of glob patterns indicating a set of files for which coverage information should be collected
23
+ // collectCoverageFrom: undefined,
24
+
25
+ // The directory where Jest should output its coverage files
26
+ coverageDirectory: 'coverage',
27
+
28
+ // An array of regexp pattern strings used to skip coverage collection
29
+ // coveragePathIgnorePatterns: [
30
+ // "/node_modules/"
31
+ // ],
32
+
33
+ // Indicates which provider should be used to instrument code for coverage
34
+ coverageProvider: 'v8',
35
+
36
+ // A list of reporter names that Jest uses when writing coverage reports
37
+ // coverageReporters: [
38
+ // "json",
39
+ // "text",
40
+ // "lcov",
41
+ // "clover"
42
+ // ],
43
+
44
+ // An object that configures minimum threshold enforcement for coverage results
45
+ // coverageThreshold: undefined,
46
+
47
+ // A path to a custom dependency extractor
48
+ // dependencyExtractor: undefined,
49
+
50
+ // Make calling deprecated APIs throw helpful error messages
51
+ // errorOnDeprecated: false,
52
+
53
+ // Force coverage collection from ignored files using an array of glob patterns
54
+ // forceCoverageMatch: [],
55
+
56
+ // A path to a module which exports an async function that is triggered once before all test suites
57
+ // globalSetup: undefined,
58
+
59
+ // A path to a module which exports an async function that is triggered once after all test suites
60
+ // globalTeardown: undefined,
61
+
62
+ // A set of global variables that need to be available in all test environments
63
+ // globals: {},
64
+
65
+ // 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.
66
+ // maxWorkers: "50%",
67
+
68
+ // An array of directory names to be searched recursively up from the requiring module's location
69
+ // moduleDirectories: [
70
+ // "node_modules"
71
+ // ],
72
+
73
+ // An array of file extensions your modules use
74
+ // moduleFileExtensions: [
75
+ // "js",
76
+ // "jsx",
77
+ // "ts",
78
+ // "tsx",
79
+ // "json",
80
+ // "node"
81
+ // ],
82
+
83
+ // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
84
+ // moduleNameMapper: {},
85
+
86
+ // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
87
+ // modulePathIgnorePatterns: [],
88
+
89
+ // Activates notifications for test results
90
+ // notify: false,
91
+
92
+ // An enum that specifies notification mode. Requires { notify: true }
93
+ // notifyMode: "failure-change",
94
+
95
+ // A preset that is used as a base for Jest's configuration
96
+ preset: 'ts-jest',
97
+
98
+ // Run tests from one or more projects
99
+ // projects: undefined,
100
+
101
+ // Use this configuration option to add custom reporters to Jest
102
+ // reporters: undefined,
103
+
104
+ // Automatically reset mock state between every test
105
+ // resetMocks: false,
106
+
107
+ // Reset the module registry before running each individual test
108
+ // resetModules: false,
109
+
110
+ // A path to a custom resolver
111
+ // resolver: undefined,
112
+
113
+ // Automatically restore mock state between every test
114
+ // restoreMocks: false,
115
+
116
+ // The root directory that Jest should scan for tests and modules within
117
+ // rootDir: undefined,
118
+
119
+ // A list of paths to directories that Jest should use to search for files in
120
+ // roots: [
121
+ // "<rootDir>"
122
+ // ],
123
+
124
+ // Allows you to use a custom runner instead of Jest's default test runner
125
+ // runner: "jest-runner",
126
+
127
+ // The paths to modules that run some code to configure or set up the testing environment before each test
128
+ // setupFiles: [],
129
+
130
+ // A list of paths to modules that run some code to configure or set up the testing framework before each test
131
+ // setupFilesAfterEnv: [],
132
+
133
+ // The number of seconds after which a test is considered as slow and reported as such in the results.
134
+ // slowTestThreshold: 5,
135
+
136
+ // A list of paths to snapshot serializer modules Jest should use for snapshot testing
137
+ // snapshotSerializers: [],
138
+
139
+ // The test environment that will be used for testing
140
+ testEnvironment: 'jsdom',
141
+
142
+ // Options that will be passed to the testEnvironment
143
+ // testEnvironmentOptions: {},
144
+
145
+ // Adds a location field to test results
146
+ // testLocationInResults: false,
147
+
148
+ // The glob patterns Jest uses to detect test files
149
+ // testMatch: [
150
+ // "**/__tests__/**/*.[jt]s?(x)",
151
+ // "**/?(*.)+(spec|test).[tj]s?(x)"
152
+ // ],
153
+
154
+ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
155
+ // testPathIgnorePatterns: [
156
+ // "/node_modules/"
157
+ // ],
158
+
159
+ // The regexp pattern or array of patterns that Jest uses to detect test files
160
+ // testRegex: [],
161
+
162
+ // This option allows the use of a custom results processor
163
+ // testResultsProcessor: undefined,
164
+
165
+ // This option allows use of a custom test runner
166
+ // testRunner: "jest-circus/runner",
167
+
168
+ // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
169
+ // testURL: "http://localhost",
170
+
171
+ // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
172
+ // timers: "real",
173
+
174
+ // A map from regular expressions to paths to transformers
175
+ // transform: undefined,
176
+
177
+ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
178
+ // transformIgnorePatterns: [
179
+ // "/node_modules/",
180
+ // "\\.pnp\\.[^\\/]+$"
181
+ // ],
182
+
183
+ // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
184
+ // unmockedModulePathPatterns: undefined,
185
+
186
+ // Indicates whether each individual test should be reported during the run
187
+ // verbose: undefined,
188
+
189
+ // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
190
+ // watchPathIgnorePatterns: [],
191
+
192
+ // Whether to use watchman for file crawling
193
+ // watchman: true,
194
+ }