@mkody/twitch-emoticons 2.9.6 → 3.0.0-beta.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 (80) hide show
  1. package/README.md +530 -169
  2. package/dist/TwitchEmoticons.cjs +950 -0
  3. package/dist/TwitchEmoticons.esm.min.js +7 -0
  4. package/dist/TwitchEmoticons.esm.min.js.map +7 -0
  5. package/dist/TwitchEmoticons.min.js +2 -20
  6. package/dist/TwitchEmoticons.min.js.map +4 -4
  7. package/package.json +99 -72
  8. package/src/index.js +38 -12
  9. package/src/struct/BTTVEmote.js +72 -74
  10. package/src/struct/Channel.js +48 -48
  11. package/src/struct/Emote.js +71 -71
  12. package/src/struct/EmoteFetcher.js +358 -322
  13. package/src/struct/EmoteParser.js +95 -84
  14. package/src/struct/EmoteTypeMapper.js +9 -9
  15. package/src/struct/FFZEmote.js +91 -93
  16. package/src/struct/SevenTVEmote.js +88 -90
  17. package/src/struct/TwitchEmote.js +72 -71
  18. package/src/util/Collection.js +69 -55
  19. package/src/util/Constants.js +30 -30
  20. package/typings/index.d.cts +254 -0
  21. package/typings/index.d.ts +216 -99
  22. package/.jsdoc.json +0 -46
  23. package/.nvmrc +0 -1
  24. package/docs/BTTVEmote.html +0 -1532
  25. package/docs/Channel.html +0 -824
  26. package/docs/Collection.html +0 -798
  27. package/docs/Emote.html +0 -832
  28. package/docs/EmoteFetcher.html +0 -3741
  29. package/docs/EmoteParser.html +0 -1187
  30. package/docs/FFZEmote.html +0 -1686
  31. package/docs/SevenTVEmote.html +0 -1596
  32. package/docs/TwitchEmote.html +0 -1528
  33. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  34. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  35. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  36. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  37. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  38. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  39. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  40. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  41. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  42. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -978
  43. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  44. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  45. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  46. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  47. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -1049
  48. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  49. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  50. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  51. package/docs/index.html +0 -233
  52. package/docs/scripts/collapse.js +0 -39
  53. package/docs/scripts/commonNav.js +0 -28
  54. package/docs/scripts/linenumber.js +0 -25
  55. package/docs/scripts/nav.js +0 -12
  56. package/docs/scripts/polyfill.js +0 -4
  57. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  58. package/docs/scripts/prettify/lang-css.js +0 -2
  59. package/docs/scripts/prettify/prettify.js +0 -28
  60. package/docs/scripts/search.js +0 -99
  61. package/docs/struct_BTTVEmote.js.html +0 -162
  62. package/docs/struct_Channel.js.html +0 -132
  63. package/docs/struct_Emote.js.html +0 -159
  64. package/docs/struct_EmoteFetcher.js.html +0 -429
  65. package/docs/struct_EmoteParser.js.html +0 -172
  66. package/docs/struct_FFZEmote.js.html +0 -185
  67. package/docs/struct_SevenTVEmote.js.html +0 -180
  68. package/docs/struct_TwitchEmote.js.html +0 -159
  69. package/docs/styles/jsdoc.css +0 -776
  70. package/docs/styles/prettify.css +0 -80
  71. package/docs/util_Collection.js.html +0 -151
  72. package/eslint.config.mjs +0 -215
  73. package/jest.config.js +0 -198
  74. package/test/BTTV.test.js +0 -48
  75. package/test/FFZ.test.js +0 -71
  76. package/test/SevenTV.test.js +0 -71
  77. package/test/ToFromObject.test.js +0 -156
  78. package/test/Twitch.test.js +0 -64
  79. package/test/__snapshots__/ToFromObject.test.js.snap +0 -121
  80. package/test/other.test.js +0 -72
@@ -1,80 +0,0 @@
1
- .pln {
2
- color: #ddd;
3
- }
4
-
5
- /* string content */
6
- .str {
7
- color: #61ce3c;
8
- }
9
-
10
- /* a keyword */
11
- .kwd {
12
- color: #fbde2d;
13
- }
14
-
15
- /* a comment */
16
- .com {
17
- color: #aeaeae;
18
- }
19
-
20
- /* a type name */
21
- .typ {
22
- color: #8da6ce;
23
- }
24
-
25
- /* a literal value */
26
- .lit {
27
- color: #fbde2d;
28
- }
29
-
30
- /* punctuation */
31
- .pun {
32
- color: #ddd;
33
- }
34
-
35
- /* lisp open bracket */
36
- .opn {
37
- color: #000000;
38
- }
39
-
40
- /* lisp close bracket */
41
- .clo {
42
- color: #000000;
43
- }
44
-
45
- /* a markup tag name */
46
- .tag {
47
- color: #8da6ce;
48
- }
49
-
50
- /* a markup attribute name */
51
- .atn {
52
- color: #fbde2d;
53
- }
54
-
55
- /* a markup attribute value */
56
- .atv {
57
- color: #ddd;
58
- }
59
-
60
- /* a declaration */
61
- .dec {
62
- color: #EF5050;
63
- }
64
-
65
- /* a variable name */
66
- .var {
67
- color: #c82829;
68
- }
69
-
70
- /* a function name */
71
- .fun {
72
- color: #4271ae;
73
- }
74
-
75
- /* Specify class=linenums on a pre to get line numbering */
76
- ol.linenums {
77
- margin-top: 0;
78
- margin-bottom: 0;
79
- padding-bottom: 2px;
80
- }
@@ -1,151 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>util/Collection.js - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
-
18
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
- </head>
20
- <body>
21
-
22
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
- <label for="nav-trigger" class="navicon-button x">
24
- <div class="navicon"></div>
25
- </label>
26
-
27
- <label for="nav-trigger" class="overlay"></label>
28
-
29
- <nav >
30
-
31
-
32
- <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/mkody/twitch-emoticons" target="_blank" class="menu-item" id="github_link" >GitHub</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html#toLink">toLink</a></li><li data-type='method'><a href="BTTVEmote.html#toObject">toObject</a></li><li data-type='method'><a href="BTTVEmote.html#.fromObject">fromObject</a></li></ul></li><li><a href="Channel.html">Channel</a><ul class='methods'><li data-type='method'><a href="Channel.html#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="Channel.html#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="Channel.html#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#toObject">toObject</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#fetchTwitchEmotes">fetchTwitchEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fromObject">fromObject</a></li></ul></li><li><a href="EmoteParser.html">EmoteParser</a><ul class='methods'><li data-type='method'><a href="EmoteParser.html#parse">parse</a></li></ul></li><li><a href="FFZEmote.html">FFZEmote</a><ul class='methods'><li data-type='method'><a href="FFZEmote.html#toLink">toLink</a></li><li data-type='method'><a href="FFZEmote.html#toObject">toObject</a></li><li data-type='method'><a href="FFZEmote.html#.fromObject">fromObject</a></li></ul></li><li><a href="SevenTVEmote.html">SevenTVEmote</a><ul class='methods'><li data-type='method'><a href="SevenTVEmote.html#toLink">toLink</a></li><li data-type='method'><a href="SevenTVEmote.html#toObject">toObject</a></li><li data-type='method'><a href="SevenTVEmote.html#.fromObject">fromObject</a></li></ul></li><li><a href="TwitchEmote.html">TwitchEmote</a><ul class='methods'><li data-type='method'><a href="TwitchEmote.html#toLink">toLink</a></li><li data-type='method'><a href="TwitchEmote.html#toObject">toObject</a></li><li data-type='method'><a href="TwitchEmote.html#.fromObject">fromObject</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#find">find</a></li><li data-type='method'><a href="Collection.html#filter">filter</a></li><li data-type='method'><a href="Collection.html#map">map</a></li></ul></li></ul>
33
-
34
- </nav>
35
-
36
- <div id="main">
37
-
38
- <h1 class="page-title">util/Collection.js</h1>
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- <section>
47
- <article>
48
- <pre class="prettyprint source linenums"><code>/* eslint-disable jsdoc/reject-function-type, jsdoc/reject-any-type */
49
- /**
50
- * An extended Map with utility methods.
51
- * @class Collection
52
- */
53
- class Collection extends Map {
54
- /**
55
- * Finds first matching value by property or function.
56
- * Same as `Array#find`.
57
- * @param {string|Function} propOrFunc - Property or function to test.
58
- * @param {any} [value] - Value to find.
59
- * @returns {any}
60
- */
61
- find(propOrFunc, value) {
62
- if (typeof propOrFunc === 'string') {
63
- if (typeof value === 'undefined') return null;
64
- for (const item of this.values()) {
65
- if (item[propOrFunc] === value) return item;
66
- }
67
-
68
- return null;
69
- }
70
-
71
- if (typeof propOrFunc === 'function') {
72
- let i = 0;
73
- for (const item of this.values()) {
74
- if (propOrFunc(item, i, this)) return item;
75
- i++;
76
- }
77
-
78
- return null;
79
- }
80
-
81
- return null;
82
- }
83
-
84
- /**
85
- * Filters cache by function.
86
- * Same as `Array#filter`.
87
- * @param {Function} func - Function to test.
88
- * @param {any} [thisArg] - The context for the function.
89
- * @returns {Collection}
90
- */
91
- filter(func, thisArg) {
92
- if (thisArg) func = func.bind(thisArg);
93
-
94
- const results = new this.constructor();
95
-
96
- let i = 0;
97
- for (const [key, item] of this) {
98
- if (func(item, i, this)) results.set(key, item);
99
- i++;
100
- }
101
-
102
- return results;
103
- }
104
-
105
- /**
106
- * Maps cache by function.
107
- * Same as `Array#map`.
108
- * @param {Function} func - Function to use.
109
- * @param {any} [thisArg] - The context for the function.
110
- * @returns {any[]}
111
- */
112
- map(func, thisArg) {
113
- if (thisArg) func = func.bind(thisArg);
114
-
115
- const array = new Array(this.size);
116
- let i = 0;
117
- for (const item of this.values()) {
118
- array[i] = func(item, i, this);
119
- i++;
120
- }
121
-
122
- return array;
123
- }
124
- }
125
-
126
- module.exports = Collection;
127
- </code></pre>
128
- </article>
129
- </section>
130
-
131
-
132
-
133
-
134
-
135
-
136
- </div>
137
-
138
- <br class="clear">
139
-
140
- <footer>
141
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
142
- </footer>
143
-
144
- <script>prettyPrint();</script>
145
- <script src="scripts/polyfill.js"></script>
146
- <script src="scripts/linenumber.js"></script>
147
-
148
-
149
-
150
- </body>
151
- </html>
package/eslint.config.mjs DELETED
@@ -1,215 +0,0 @@
1
- import globals from 'globals';
2
- import js from '@eslint/js';
3
- import jsdoc from 'eslint-plugin-jsdoc';
4
-
5
- export default [
6
- js.configs.recommended,
7
- jsdoc.configs['flat/recommended'],
8
- {
9
- files: [
10
- '**/*.js'
11
- ],
12
- ignores: [
13
- '**/*.min.js'
14
- ],
15
- languageOptions: {
16
- globals: {
17
- ...globals.node
18
- },
19
- parserOptions: {
20
- ecmaVersion: 2018
21
- }
22
- },
23
- rules: {
24
- 'no-await-in-loop': 'warn',
25
- 'no-extra-parens': [
26
- 'warn',
27
- 'all',
28
- {
29
- nestedBinaryExpressions: false
30
- }
31
- ],
32
- 'no-template-curly-in-string': 'error',
33
- 'no-unsafe-negation': 'error',
34
-
35
- 'jsdoc/no-defaults': 'off',
36
- 'jsdoc/no-undefined-types': 'off',
37
- 'jsdoc/require-returns-description': 'off',
38
- 'jsdoc/require-returns': 'off',
39
-
40
- 'accessor-pairs': 'warn',
41
- 'array-callback-return': 'error',
42
- complexity: 'warn',
43
- 'consistent-return': 'error',
44
- curly: [
45
- 'error',
46
- 'multi-line',
47
- 'consistent'
48
- ],
49
- 'dot-location': [
50
- 'error',
51
- 'property'
52
- ],
53
- 'dot-notation': 'error',
54
- eqeqeq: [
55
- 'error',
56
- 'smart'
57
- ],
58
- 'no-console': 'error',
59
- 'no-empty-function': 'error',
60
- 'no-floating-decimal': 'error',
61
- 'no-implied-eval': 'error',
62
- 'no-invalid-this': 'error',
63
- 'no-lone-blocks': 'error',
64
- 'no-multi-spaces': 'error',
65
- 'no-new-func': 'error',
66
- 'no-new-wrappers': 'error',
67
- 'no-new': 'error',
68
- 'no-octal-escape': 'error',
69
- 'no-return-assign': 'error',
70
- 'no-return-await': 'error',
71
- 'no-self-compare': 'error',
72
- 'no-sequences': 'error',
73
- 'no-throw-literal': 'error',
74
- 'no-unmodified-loop-condition': 'error',
75
- 'no-unused-expressions': 'error',
76
- 'no-useless-call': 'error',
77
- 'no-useless-concat': 'error',
78
- 'no-useless-escape': 'error',
79
- 'no-useless-return': 'error',
80
- 'no-void': 'error',
81
- 'no-warning-comments': 'warn',
82
- 'require-await': 'warn',
83
- 'wrap-iife': 'error',
84
- 'yoda': 'error',
85
-
86
- 'no-label-var': 'error',
87
- 'no-shadow': 'error',
88
- 'no-undef-init': 'error',
89
-
90
- 'callback-return': 'error',
91
- 'handle-callback-err': 'error',
92
- 'no-mixed-requires': 'error',
93
- 'no-new-require': 'error',
94
- 'no-path-concat': 'error',
95
-
96
- 'array-bracket-spacing': 'error',
97
- 'block-spacing': 'error',
98
- 'brace-style': [
99
- 'error',
100
- '1tbs',
101
- {
102
- allowSingleLine: true
103
- }
104
- ],
105
- 'comma-dangle': [
106
- 'error',
107
- 'never'
108
- ],
109
- 'comma-spacing': 'error',
110
- 'comma-style': 'error',
111
- 'computed-property-spacing': 'error',
112
- 'consistent-this': [
113
- 'error',
114
- '$this'
115
- ],
116
- 'eol-last': 'error',
117
- 'func-names': 'error',
118
- 'func-name-matching': 'error',
119
- 'func-style': [
120
- 'error',
121
- 'declaration',
122
- {
123
- allowArrowFunctions: true
124
- }
125
- ],
126
- indent: [
127
- 'error', 4
128
- ],
129
- 'key-spacing': 'error',
130
- 'keyword-spacing': 'error',
131
- 'max-depth': 'error',
132
- 'max-nested-callbacks': [
133
- 'error',
134
- {
135
- max: 4
136
- }
137
- ],
138
- 'max-statements-per-line': [
139
- 'error',
140
- {
141
- max: 2
142
- }
143
- ],
144
- 'new-cap': 'error',
145
- 'no-array-constructor': 'error',
146
- 'no-inline-comments': 'error',
147
- 'no-lonely-if': 'error',
148
- 'no-mixed-operators': 'error',
149
- 'no-multiple-empty-lines': [
150
- 'error',
151
- {
152
- max: 2,
153
- maxEOF: 1,
154
- maxBOF: 0
155
- }
156
- ],
157
- 'no-new-object': 'error',
158
- 'no-spaced-func': 'error',
159
- 'no-trailing-spaces': 'error',
160
- 'no-unneeded-ternary': 'error',
161
- 'no-whitespace-before-property': 'error',
162
- 'object-curly-spacing': [
163
- 'error',
164
- 'always'
165
- ],
166
- 'operator-assignment': 'error',
167
- 'operator-linebreak': [
168
- 'error',
169
- 'before'
170
- ],
171
- 'padded-blocks': [
172
- 'error',
173
- 'never'
174
- ],
175
- 'quote-props': [
176
- 'error',
177
- 'as-needed'
178
- ],
179
- 'quotes': [
180
- 'error',
181
- 'single'
182
- ],
183
- 'semi-spacing': 'error',
184
- 'semi': 'error',
185
- 'space-before-blocks': 'error',
186
- 'space-before-function-paren': [
187
- 'error',
188
- 'never'
189
- ],
190
- 'space-in-parens': 'error',
191
- 'space-infix-ops': 'error',
192
- 'space-unary-ops': 'error',
193
- 'spaced-comment': 'error',
194
- 'unicode-bom': 'error',
195
-
196
- 'arrow-parens': [
197
- 'error',
198
- 'as-needed'
199
- ],
200
- 'arrow-spacing': 'error',
201
- 'no-duplicate-imports': 'error',
202
- 'no-useless-computed-key': 'error',
203
- 'no-useless-constructor': 'error',
204
- 'prefer-const': 'error',
205
- 'prefer-arrow-callback': 'error',
206
- 'prefer-numeric-literals': 'error',
207
- 'prefer-rest-params': 'error',
208
- 'prefer-spread': 'error',
209
- 'prefer-template': 'error',
210
- 'rest-spread-spacing': 'error',
211
- 'template-curly-spacing': 'error',
212
- 'yield-star-spacing': 'error'
213
- }
214
- }
215
- ];
package/jest.config.js DELETED
@@ -1,198 +0,0 @@
1
- /**
2
- * For a detailed explanation regarding each configuration property, visit:
3
- * https://jestjs.io/docs/configuration
4
- */
5
-
6
- /** @type {import('jest').Config} */
7
- const config = {
8
- // All imported modules in your tests should be mocked automatically
9
- // automock: false,
10
-
11
- // Stop running tests after `n` failures
12
- // bail: 0,
13
-
14
- // The directory where Jest should store its cached dependency information
15
- // cacheDirectory: undefined,
16
-
17
- // Automatically clear mock calls, instances, contexts and results before every test
18
- // clearMocks: false,
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: [
25
- '<rootDir>/src/struct/*.{js,jsx,ts,tsx}'
26
- ],
27
-
28
- // The directory where Jest should output its coverage files
29
- // coverageDirectory: undefined,
30
-
31
- // An array of regexp pattern strings used to skip coverage collection
32
- // coveragePathIgnorePatterns: [],
33
-
34
- // Indicates which provider should be used to instrument code for coverage
35
- coverageProvider: 'v8',
36
-
37
- // A list of reporter names that Jest uses when writing coverage reports
38
- // coverageReporters: [
39
- // 'json',
40
- // 'text',
41
- // 'lcov',
42
- // 'clover'
43
- // ],
44
-
45
- // An object that configures minimum threshold enforcement for coverage results
46
- // coverageThreshold: undefined,
47
-
48
- // A path to a custom dependency extractor
49
- // dependencyExtractor: undefined,
50
-
51
- // Make calling deprecated APIs throw helpful error messages
52
- // errorOnDeprecated: false,
53
-
54
- // The default configuration for fake timers
55
- // fakeTimers: {
56
- // 'enableGlobally': false
57
- // },
58
-
59
- // Force coverage collection from ignored files using an array of glob patterns
60
- // forceCoverageMatch: [],
61
-
62
- // A path to a module which exports an async function that is triggered once before all test suites
63
- // globalSetup: undefined,
64
-
65
- // A path to a module which exports an async function that is triggered once after all test suites
66
- // globalTeardown: undefined,
67
-
68
- // A set of global variables that need to be available in all test environments
69
- // globals: {},
70
-
71
- // 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.
72
- // maxWorkers: '50%',
73
-
74
- // An array of directory names to be searched recursively up from the requiring module's location
75
- // moduleDirectories: [
76
- // 'node_modules'
77
- // ],
78
-
79
- // An array of file extensions your modules use
80
- // moduleFileExtensions: [
81
- // 'js',
82
- // 'mjs',
83
- // 'cjs',
84
- // 'jsx',
85
- // 'ts',
86
- // 'tsx',
87
- // 'json',
88
- // 'node'
89
- // ],
90
-
91
- // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
92
- // moduleNameMapper: {},
93
-
94
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
95
- // modulePathIgnorePatterns: [],
96
-
97
- // Activates notifications for test results
98
- // notify: false,
99
-
100
- // An enum that specifies notification mode. Requires { notify: true }
101
- // notifyMode: 'failure-change',
102
-
103
- // A preset that is used as a base for Jest's configuration
104
- // preset: undefined,
105
-
106
- // Run tests from one or more projects
107
- // projects: undefined,
108
-
109
- // Use this configuration option to add custom reporters to Jest
110
- // reporters: undefined,
111
-
112
- // Automatically reset mock state before every test
113
- // resetMocks: false,
114
-
115
- // Reset the module registry before running each individual test
116
- // resetModules: false,
117
-
118
- // A path to a custom resolver
119
- // resolver: undefined,
120
-
121
- // Automatically restore mock state and implementation before every test
122
- // restoreMocks: false,
123
-
124
- // The root directory that Jest should scan for tests and modules within
125
- // rootDir: undefined,
126
-
127
- // A list of paths to directories that Jest should use to search for files in
128
- roots: [
129
- '<rootDir>/test'
130
- ],
131
-
132
- // Allows you to use a custom runner instead of Jest's default test runner
133
- // runner: 'jest-runner',
134
-
135
- // The paths to modules that run some code to configure or set up the testing environment before each test
136
- // setupFiles: [],
137
-
138
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
139
- // setupFilesAfterEnv: [],
140
-
141
- // The number of seconds after which a test is considered as slow and reported as such in the results.
142
- // slowTestThreshold: 5,
143
-
144
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
145
- // snapshotSerializers: [],
146
-
147
- // The test environment that will be used for testing
148
- // testEnvironment: 'jest-environment-node',
149
-
150
- // Options that will be passed to the testEnvironment
151
- // testEnvironmentOptions: {},
152
-
153
- // Adds a location field to test results
154
- // testLocationInResults: false,
155
-
156
- // The glob patterns Jest uses to detect test files
157
- // testMatch: [
158
- // '**/__tests__/**/*.[jt]s?(x)'
159
- // '**/?(*.)+(spec|test).[tj]s?(x)'
160
- // ],
161
-
162
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
163
- // testPathIgnorePatterns: [
164
- // '\\\\node_modules\\\\'
165
- // ],
166
-
167
- // The regexp pattern or array of patterns that Jest uses to detect test files
168
- // testRegex: [],
169
-
170
- // This option allows the use of a custom results processor
171
- // testResultsProcessor: undefined,
172
-
173
- // This option allows use of a custom test runner
174
- // testRunner: 'jest-circus/runner',
175
-
176
- // A map from regular expressions to paths to transformers
177
- // transform: undefined,
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
- // '\\.pnp\\.[^\\\\]+$'
183
- // ],
184
-
185
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
186
- // unmockedModulePathPatterns: undefined,
187
-
188
- // Indicates whether each individual test should be reported during the run
189
- verbose: true
190
-
191
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
192
- // watchPathIgnorePatterns: [],
193
-
194
- // Whether to use watchman for file crawling
195
- // watchman: true
196
- };
197
-
198
- module.exports = config;