nanosplash 2.4.0 → 2.5.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.
- package/.github/workflows/production.yml +5 -2
- package/README.md +1 -1
- package/dist/iife/nanosplash.iife.js +1 -1
- package/dist/module/manifest.json +1 -4
- package/dist/module/nanosplash.cjs.js +1 -1
- package/dist/module/nanosplash.es.js +122 -67
- package/dist/module/{Nanosplash.css → style.css} +0 -0
- package/docs/index.html +51 -19
- package/docs/nanosplash.iife.js +3 -3
- package/docs/typedoc/assets/search.js +1 -1
- package/docs/typedoc/classes/Core_Nanosplash.default.html +133 -0
- package/docs/typedoc/modules/Core_Nanosplash.html +1 -1
- package/docs/typedoc/modules/types.html +1 -1
- package/index.html +51 -19
- package/package.json +10 -9
- package/src/Core/Nanosplash.ts +160 -38
- package/src/Core/SplashInstance.ts +29 -23
- package/src/Exceptions/DestinationException.ts +13 -0
- package/src/Exceptions/Exception.ts +9 -0
- package/src/Exceptions/IllegalArgumentException.ts +11 -0
- package/src/Factory/NanosplashFactory.ts +37 -5
- package/src/Interfaces/NanosplashInterface.ts +6 -1
- package/src/{repositories → Repositories}/NanosplashRepository.ts +37 -6
- package/src/{utilities → Tests}/dom.spec.ts +7 -5
- package/src/{utilities → Utilities}/dom.ts +23 -0
- package/src/main.ts +2 -5
- package/src/types.d.ts +19 -13
- package/tsconfig.json +1 -0
- package/update-all.sh +2 -2
- package/vite.config.ts +16 -0
- package/vite.mod.config.js +10 -11
- package/docs/typedoc/classes/Core_Nanosplash.Nanosplash.html +0 -59
- package/jest.config.ts +0 -194
package/src/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Nanosplash from "./Core/Nanosplash";
|
|
2
2
|
import {SplashInstance} from "./Core/SplashInstance";
|
|
3
3
|
import {ShowInterface} from "./Interfaces/ShowInterface";
|
|
4
4
|
import {ContextualAPIInterface} from "./Interfaces/ContextualAPIInterface";
|
|
5
|
+
import {NanosplashInterface} from "./Interfaces/NanosplashInterface";
|
|
5
6
|
|
|
6
7
|
declare global {
|
|
7
8
|
interface Window {
|
|
@@ -11,8 +12,8 @@ declare global {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
type Destination = Node | string
|
|
15
|
-
type SplashJob = [Promise<any>, string]
|
|
15
|
+
export type Destination = Node | string
|
|
16
|
+
export type SplashJob = [Promise<any>, string]
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* @internal
|
|
@@ -24,17 +25,18 @@ export type ElementTag = keyof HTMLElementTagNameMap | keyof SVGElementTagNameMa
|
|
|
24
25
|
*/
|
|
25
26
|
type CSSProperty = keyof CSSStyleDeclaration
|
|
26
27
|
|
|
27
|
-
type ShowFunction = (text: string) =>
|
|
28
|
-
type ProgressFunction = (...[]: SplashJob[]) =>
|
|
29
|
-
type WhileFunction = (asyncTask: Promise<any>) => ShowInterface
|
|
30
|
-
type StrategyObject = {
|
|
28
|
+
export type ShowFunction = (text: string) => ContextualAPIObject
|
|
29
|
+
export type ProgressFunction = (...[]: SplashJob[]) => ContextualAPIObject
|
|
30
|
+
export type WhileFunction = (asyncTask: Promise<any>) => ShowInterface
|
|
31
|
+
export type StrategyObject = {
|
|
31
32
|
show: ShowFunction,
|
|
32
33
|
progress: ProgressFunction,
|
|
33
34
|
while: WhileFunction
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
type InsideFunction = (selector: string) => ContextualAPIInterface
|
|
37
|
-
|
|
36
|
+
|
|
37
|
+
export type InsideFunction = (selector: string) => ContextualAPIInterface
|
|
38
|
+
|
|
39
|
+
export type ContextualAPIObject = {
|
|
38
40
|
getId: () => string,
|
|
39
41
|
inside?: InsideFunction,
|
|
40
42
|
remove: () => void
|
|
@@ -44,10 +46,14 @@ type ContextualAPIObject = {
|
|
|
44
46
|
getImgSrc: () => string | undefined,
|
|
45
47
|
setImgSrc: (src?: string) => SplashInstance
|
|
46
48
|
}
|
|
47
|
-
type InstanceIterationCallback = (id: string, splashInstance: SplashInstance, i: number) => boolean
|
|
48
49
|
|
|
49
|
-
type
|
|
50
|
+
export type InstanceIterationCallback = (id: string, splashInstance: SplashInstance, i: number) => boolean
|
|
51
|
+
|
|
52
|
+
export type NanosplashOptions = {
|
|
50
53
|
imgSrc?: string,
|
|
51
54
|
spinner?: boolean,
|
|
52
|
-
fontSize?: string
|
|
55
|
+
fontSize?: string,
|
|
56
|
+
debug?: boolean
|
|
53
57
|
}
|
|
58
|
+
|
|
59
|
+
export default Nanosplash
|
package/tsconfig.json
CHANGED
package/update-all.sh
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
yarn remove @types/
|
|
3
|
-
yarn add -D @types/
|
|
2
|
+
yarn remove @types/jsdom autoprefixer cssnano jsdom postcss sass ts-jest ts-node typedoc typescript vite vitest
|
|
3
|
+
yarn add -D @types/jsdom autoprefixer cssnano jsdom postcss sass ts-jest ts-node typedoc typescript vite vitest
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config'
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
globals: true,
|
|
6
|
+
environment: 'jsdom',
|
|
7
|
+
coverage: {
|
|
8
|
+
reporter: ['text', 'html'],
|
|
9
|
+
exclude: [
|
|
10
|
+
'node_modules/',
|
|
11
|
+
'dist/',
|
|
12
|
+
'docs/',
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
})
|
package/vite.mod.config.js
CHANGED
|
@@ -10,16 +10,16 @@ export default defineConfig({
|
|
|
10
10
|
formats: ['es', 'cjs'],
|
|
11
11
|
},
|
|
12
12
|
outDir: 'dist/module',
|
|
13
|
-
cssCodeSplit:
|
|
13
|
+
cssCodeSplit: false,
|
|
14
14
|
minify: 'terser',
|
|
15
15
|
terserOptions: {
|
|
16
16
|
parse: {
|
|
17
|
-
bare_returns:
|
|
17
|
+
bare_returns: false,
|
|
18
18
|
},
|
|
19
19
|
compress: {
|
|
20
20
|
keep_fargs: false,
|
|
21
21
|
keep_fnames: false,
|
|
22
|
-
keep_classnames:
|
|
22
|
+
keep_classnames: true,
|
|
23
23
|
module: true,
|
|
24
24
|
passes: 3,
|
|
25
25
|
toplevel: true,
|
|
@@ -37,9 +37,12 @@ export default defineConfig({
|
|
|
37
37
|
'setText',
|
|
38
38
|
'getImgSrc',
|
|
39
39
|
'setImgSrc',
|
|
40
|
+
'showSpinner',
|
|
41
|
+
'setFontSize',
|
|
42
|
+
'getFontSize',
|
|
43
|
+
'spinnerIsVisible',
|
|
40
44
|
'moveTo',
|
|
41
45
|
'delete',
|
|
42
|
-
'img',
|
|
43
46
|
'show',
|
|
44
47
|
'inside',
|
|
45
48
|
'remove',
|
|
@@ -48,17 +51,13 @@ export default defineConfig({
|
|
|
48
51
|
'delete',
|
|
49
52
|
'hideAll',
|
|
50
53
|
'hide',
|
|
54
|
+
'getFromDestinationNode',
|
|
55
|
+
'getDestination'
|
|
51
56
|
],
|
|
52
57
|
}
|
|
53
58
|
},
|
|
54
|
-
format: {
|
|
55
|
-
// wrap_iife: true
|
|
56
|
-
},
|
|
57
|
-
sourceMap: {
|
|
58
|
-
// source map options
|
|
59
|
-
},
|
|
60
59
|
ecma: 2015, // specify one of: 5, 2015, 2016, etc.
|
|
61
|
-
keep_classnames:
|
|
60
|
+
keep_classnames: true,
|
|
62
61
|
keep_fnames: false,
|
|
63
62
|
ie8: false,
|
|
64
63
|
module: true,
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Nanosplash | nanosplash</title><meta name="description" content="Documentation for nanosplash"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">nanosplash</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">nanosplash</a></li><li><a href="../modules/Core_Nanosplash.html">Core/Nanosplash</a></li><li><a href="Core_Nanosplash.Nanosplash.html">Nanosplash</a></li></ul><h1>Class Nanosplash </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
|
|
3
|
-
<a href="#nanosplash" id="nanosplash" style="color: inherit; text-decoration: none;">
|
|
4
|
-
<h1>Nanosplash</h1>
|
|
5
|
-
</a>
|
|
6
|
-
</div><dl class="tsd-comment-tags"><dt>author</dt><dd><p>Isak K. Hauge <a href="mailto:isakhauge@gmail.com">isakhauge@gmail.com</a></p>
|
|
7
|
-
</dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Nanosplash</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">NanosplashInterface</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#fontSize" class="tsd-kind-icon">font<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#imgSrc" class="tsd-kind-icon">img<wbr/>Src</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#instances" class="tsd-kind-icon">instances</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#showSpinner" class="tsd-kind-icon">show<wbr/>Spinner</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Core_Nanosplash.Nanosplash.html#APP_NAME" class="tsd-kind-icon">APP_<wbr/>NAME</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#delete" class="tsd-kind-icon">delete</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#getSplashesWithDestinationNode" class="tsd-kind-icon">get<wbr/>Splashes<wbr/>With<wbr/>Destination<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hide" class="tsd-kind-icon">hide</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hideAll" class="tsd-kind-icon">hide<wbr/>All</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#progress" class="tsd-kind-icon">progress</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#show" class="tsd-kind-icon">show</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#while" class="tsd-kind-icon">while</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Nanosplash<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../modules/types.html#NanosplashOptions" class="tsd-signature-type" data-tsd-kind="Type alias">NanosplashOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Core_Nanosplash.Nanosplash.html" class="tsd-signature-type" data-tsd-kind="Class">Nanosplash</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L24">Core/Nanosplash.ts:24</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
-
<p>Options passed to the constructor will persist in the instance.</p>
|
|
9
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../modules/types.html#NanosplashOptions" class="tsd-signature-type" data-tsd-kind="Type alias">NanosplashOptions</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
10
|
-
<p>Nanosplash options object.</p>
|
|
11
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="Core_Nanosplash.Nanosplash.html" class="tsd-signature-type" data-tsd-kind="Class">Nanosplash</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="fontSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link">font<wbr/>Size<a href="#fontSize" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">font<wbr/>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L17">Core/Nanosplash.ts:17</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="imgSrc" class="tsd-anchor"></a><h3 class="tsd-anchor-link">img<wbr/>Src<a href="#imgSrc" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">img<wbr/>Src<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L15">Core/Nanosplash.ts:15</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="instances" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> instances<a href="#instances" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">instances<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">SplashInstance</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L18">Core/Nanosplash.ts:18</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="showSpinner" class="tsd-anchor"></a><h3 class="tsd-anchor-link">show<wbr/>Spinner<a href="#showSpinner" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">show<wbr/>Spinner<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L16">Core/Nanosplash.ts:16</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="APP_NAME" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> APP_<wbr/>NAME<a href="#APP_NAME" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">APP_<wbr/>NAME<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'Nanosplash'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L14">Core/Nanosplash.ts:14</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="delete" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delete<a href="#delete" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">delete<span class="tsd-signature-symbol">(</span>splashInstance<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L85">Core/Nanosplash.ts:85</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
-
|
|
13
|
-
<a href="#delete" id="delete" style="color: inherit; text-decoration: none;">
|
|
14
|
-
<h1>Delete</h1>
|
|
15
|
-
</a>
|
|
16
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>splashInstance: <span class="tsd-signature-type">SplashInstance</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
17
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSplashesWithDestinationNode" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Splashes<wbr/>With<wbr/>Destination<wbr/>Node<a href="#getSplashesWithDestinationNode" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Splashes<wbr/>With<wbr/>Destination<wbr/>Node<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span><span class="tsd-signature-symbol">[]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L130">Core/Nanosplash.ts:130</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
18
|
-
|
|
19
|
-
<a href="#get-splashes-with-destination-node" id="get-splashes-with-destination-node" style="color: inherit; text-decoration: none;">
|
|
20
|
-
<h1>Get Splashes With Destination Node</h1>
|
|
21
|
-
</a>
|
|
22
|
-
<p>Returns Splash instances having the given destination node.</p>
|
|
23
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">HTMLElement</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
24
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SplashInstance</span><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="hide" class="tsd-anchor"></a><h3 class="tsd-anchor-link">hide<a href="#hide" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">hide<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L103">Core/Nanosplash.ts:103</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
25
|
-
|
|
26
|
-
<a href="#hide" id="hide" style="color: inherit; text-decoration: none;">
|
|
27
|
-
<h1>Hide</h1>
|
|
28
|
-
</a>
|
|
29
|
-
<p>Delete specific Splash instance or the latest one.</p>
|
|
30
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
31
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="hideAll" class="tsd-anchor"></a><h3 class="tsd-anchor-link">hide<wbr/>All<a href="#hideAll" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">hide<wbr/>All<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L93">Core/Nanosplash.ts:93</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
32
|
-
|
|
33
|
-
<a href="#hide-all" id="hide-all" style="color: inherit; text-decoration: none;">
|
|
34
|
-
<h1>Hide All</h1>
|
|
35
|
-
</a>
|
|
36
|
-
<p>Delete all Splash instances.</p>
|
|
37
|
-
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="progress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">progress<a href="#progress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">progress<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>jobs<span class="tsd-signature-symbol">: </span><a href="../modules/types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.progress</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L44">Core/Nanosplash.ts:44</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
38
|
-
|
|
39
|
-
<a href="#progress" id="progress" style="color: inherit; text-decoration: none;">
|
|
40
|
-
<h1>Progress</h1>
|
|
41
|
-
</a>
|
|
42
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>jobs: <a href="../modules/types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
43
|
-
<p>An array or list of Splash jobs.</p>
|
|
44
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4><div><p>ContextualAPIInterface</p>
|
|
45
|
-
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="show" class="tsd-anchor"></a><h3 class="tsd-anchor-link">show<a href="#show" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">show<span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.show</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L35">Core/Nanosplash.ts:35</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
46
|
-
|
|
47
|
-
<a href="#show" id="show" style="color: inherit; text-decoration: none;">
|
|
48
|
-
<h1>Show</h1>
|
|
49
|
-
</a>
|
|
50
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>text: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
51
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="while" class="tsd-anchor"></a><h3 class="tsd-anchor-link">while<a href="#while" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">while<span class="tsd-signature-symbol">(</span>asyncTask<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ShowInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.while</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/b6fddee/src/Core/Nanosplash.ts#L53">Core/Nanosplash.ts:53</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
52
|
-
|
|
53
|
-
<a href="#while" id="while" style="color: inherit; text-decoration: none;">
|
|
54
|
-
<h1>While</h1>
|
|
55
|
-
</a>
|
|
56
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>asyncTask: <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
57
|
-
<p>An asynchronous function or Promise.</p>
|
|
58
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ShowInterface</span></h4><div><p>ContextualAPIInterface</p>
|
|
59
|
-
</div></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Modules</a></li><li class="current tsd-kind-module"><a href="../modules/Core_Nanosplash.html">Core/<wbr/>Nanosplash</a></li><li class=" tsd-kind-module"><a href="../modules/types.html">types</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-module"><a href="Core_Nanosplash.Nanosplash.html" class="tsd-kind-icon">Nanosplash</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#fontSize" class="tsd-kind-icon">font<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#imgSrc" class="tsd-kind-icon">img<wbr/>Src</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#instances" class="tsd-kind-icon">instances</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#showSpinner" class="tsd-kind-icon">show<wbr/>Spinner</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Core_Nanosplash.Nanosplash.html#APP_NAME" class="tsd-kind-icon">APP_<wbr/>NAME</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#delete" class="tsd-kind-icon">delete</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#getSplashesWithDestinationNode" class="tsd-kind-icon">get<wbr/>Splashes<wbr/>With<wbr/>Destination<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hide" class="tsd-kind-icon">hide</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hideAll" class="tsd-kind-icon">hide<wbr/>All</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#progress" class="tsd-kind-icon">progress</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#show" class="tsd-kind-icon">show</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#while" class="tsd-kind-icon">while</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
package/jest.config.ts
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
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
|
-
}
|