@testing-library/svelte 3.0.2 → 3.1.1
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/README.md +18 -13
- package/dist/index.js +30 -0
- package/dist/pure.js +168 -0
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
height="80"
|
|
7
7
|
width="80"
|
|
8
8
|
alt="chipmunk"
|
|
9
|
-
src="https://raw.githubusercontent.com/testing-library/svelte-testing-library/
|
|
9
|
+
src="https://raw.githubusercontent.com/testing-library/svelte-testing-library/main/other/chipmunk.png"
|
|
10
10
|
/>
|
|
11
11
|
</a>
|
|
12
12
|
|
|
@@ -121,21 +121,26 @@ Thanks goes to these people ([emoji key][emojis]):
|
|
|
121
121
|
<!-- markdownlint-disable -->
|
|
122
122
|
<table>
|
|
123
123
|
<tr>
|
|
124
|
-
<td align="center"><a href="https://github.com/benmonro"><img src="https://avatars3.githubusercontent.com/u/399236?v=4" width="100px;" alt="
|
|
125
|
-
<td align="center"><a href="https://twitter.com/EmilTholin"><img src="https://avatars0.githubusercontent.com/u/11573167?v=4" width="100px;" alt="
|
|
126
|
-
<td align="center"><a href="https://medium.com/@oieduardorabelo"><img src="https://avatars1.githubusercontent.com/u/829902?v=4" width="100px;" alt="
|
|
127
|
-
<td align="center"><a href="http://timdeschryver.dev"><img src="https://avatars1.githubusercontent.com/u/28659384?v=4" width="100px;" alt="
|
|
128
|
-
<td align="center"><a href="http://www.ematipico.com"><img src="https://avatars3.githubusercontent.com/u/602478?v=4" width="100px;" alt="
|
|
129
|
-
<td align="center"><a href="https://github.com/pngwn"><img src="https://avatars1.githubusercontent.com/u/12937446?v=4" width="100px;" alt="
|
|
130
|
-
<td align="center"><a href="https://twitter.com/sebsilbermann"><img src="https://avatars3.githubusercontent.com/u/12292047?v=4" width="100px;" alt="
|
|
124
|
+
<td align="center"><a href="https://github.com/benmonro"><img src="https://avatars3.githubusercontent.com/u/399236?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben Monro</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=benmonro" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=benmonro" title="Tests">⚠️</a> <a href="#ideas-benmonro" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=benmonro" title="Documentation">📖</a></td>
|
|
125
|
+
<td align="center"><a href="https://twitter.com/EmilTholin"><img src="https://avatars0.githubusercontent.com/u/11573167?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Emil Tholin</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=EmilTholin" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=EmilTholin" title="Tests">⚠️</a> <a href="#ideas-EmilTholin" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
126
|
+
<td align="center"><a href="https://medium.com/@oieduardorabelo"><img src="https://avatars1.githubusercontent.com/u/829902?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Eduardo Rabelo</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=oieduardorabelo" title="Tests">⚠️</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=oieduardorabelo" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=oieduardorabelo" title="Documentation">📖</a> <a href="#example-oieduardorabelo" title="Examples">💡</a></td>
|
|
127
|
+
<td align="center"><a href="http://timdeschryver.dev"><img src="https://avatars1.githubusercontent.com/u/28659384?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tim Deschryver</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=timdeschryver" title="Documentation">📖</a></td>
|
|
128
|
+
<td align="center"><a href="http://www.ematipico.com"><img src="https://avatars3.githubusercontent.com/u/602478?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Emanuele</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=ematipico" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=ematipico" title="Tests">⚠️</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=ematipico" title="Documentation">📖</a></td>
|
|
129
|
+
<td align="center"><a href="https://github.com/pngwn"><img src="https://avatars1.githubusercontent.com/u/12937446?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pngwn</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=pngwn" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=pngwn" title="Tests">⚠️</a></td>
|
|
130
|
+
<td align="center"><a href="https://twitter.com/sebsilbermann"><img src="https://avatars3.githubusercontent.com/u/12292047?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sebastian Silbermann</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=eps1lon" title="Code">💻</a></td>
|
|
131
131
|
</tr>
|
|
132
132
|
<tr>
|
|
133
|
-
<td align="center"><a href="https://github.com/mihar-22"><img src="https://avatars3.githubusercontent.com/u/14304599?s=460&v=4" width="100px;" alt="
|
|
133
|
+
<td align="center"><a href="https://github.com/mihar-22"><img src="https://avatars3.githubusercontent.com/u/14304599?s=460&v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rahim Alwer</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=mihar-22" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=mihar-22" title="Documentation">📖</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=mihar-22" title="Tests">⚠️</a> <a href="https://github.com/testing-library/svelte-testing-library/pulls?q=is%3Apr+reviewed-by%3Amihar-22" title="Reviewed Pull Requests">👀</a></td>
|
|
134
|
+
<td align="center"><a href="https://github.com/MirrorBytes"><img src="https://avatars3.githubusercontent.com/u/22119469?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bob</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/issues?q=author%3AMirrorBytes" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=MirrorBytes" title="Code">💻</a></td>
|
|
135
|
+
<td align="center"><a href="https://github.com/ronmerkin"><img src="https://avatars.githubusercontent.com/u/17492527?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ron Merkin</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=ronmerkin" title="Code">💻</a></td>
|
|
136
|
+
<td align="center"><a href="http://www.benmccann.com"><img src="https://avatars.githubusercontent.com/u/322311?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben McCann</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=benmccann" title="Tests">⚠️</a></td>
|
|
137
|
+
<td align="center"><a href="https://johnbowser.dev/"><img src="https://avatars.githubusercontent.com/u/66637570?v=4?s=100" width="100px;" alt=""/><br /><sub><b>John Bowser</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=jgbowser" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=jgbowser" title="Tests">⚠️</a></td>
|
|
134
138
|
</tr>
|
|
135
139
|
</table>
|
|
136
140
|
|
|
137
|
-
<!-- markdownlint-
|
|
141
|
+
<!-- markdownlint-restore -->
|
|
138
142
|
<!-- prettier-ignore-end -->
|
|
143
|
+
|
|
139
144
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
140
145
|
|
|
141
146
|
This project follows the [all-contributors][all-contributors] specification.
|
|
@@ -158,14 +163,14 @@ Contributions of any kind welcome!
|
|
|
158
163
|
[downloads-badge]: https://img.shields.io/npm/dm/@testing-library/svelte.svg?style=flat-square
|
|
159
164
|
[npmtrends]: http://www.npmtrends.com/@testing-library/svelte
|
|
160
165
|
[discord-badge]: https://img.shields.io/discord/723559267868737556.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square
|
|
161
|
-
[discord]: https://discord.gg/
|
|
166
|
+
[discord]: https://discord.gg/testing-library
|
|
162
167
|
[license-badge]: https://img.shields.io/github/license/testing-library/svelte-testing-library?color=b
|
|
163
|
-
[license]: https://github.com/testing-library/svelte-testing-library/blob/
|
|
168
|
+
[license]: https://github.com/testing-library/svelte-testing-library/blob/main/LICENSE
|
|
164
169
|
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
|
|
165
170
|
[prs]: http://makeapullrequest.com
|
|
166
171
|
[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square
|
|
167
172
|
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
|
|
168
|
-
[coc]: https://github.com/testing-library/svelte-testing-library/blob/
|
|
173
|
+
[coc]: https://github.com/testing-library/svelte-testing-library/blob/main/CODE_OF_CONDUCT.md
|
|
169
174
|
[github-watch-badge]: https://img.shields.io/github/watchers/testing-library/svelte-testing-library.svg?style=social
|
|
170
175
|
[github-watch]: https://github.com/testing-library/svelte-testing-library/watchers
|
|
171
176
|
[github-star-badge]: https://img.shields.io/github/stars/testing-library/svelte-testing-library.svg?style=social
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _pure = require("./pure");
|
|
8
|
+
|
|
9
|
+
Object.keys(_pure).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _pure[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _pure[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// If we're running in a test runner that supports afterEach
|
|
21
|
+
// then we'll automatically run cleanup afterEach test
|
|
22
|
+
// this ensures that tests run in isolation from each other
|
|
23
|
+
// if you don't like this then either import the `pure` module
|
|
24
|
+
// or set the STL_SKIP_AUTO_CLEANUP env variable to 'true'.
|
|
25
|
+
if (typeof afterEach === 'function' && !process.env.STL_SKIP_AUTO_CLEANUP) {
|
|
26
|
+
afterEach(async () => {
|
|
27
|
+
await (0, _pure.act)();
|
|
28
|
+
(0, _pure.cleanup)();
|
|
29
|
+
});
|
|
30
|
+
}
|
package/dist/pure.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
render: true,
|
|
8
|
+
cleanup: true,
|
|
9
|
+
fireEvent: true,
|
|
10
|
+
act: true
|
|
11
|
+
};
|
|
12
|
+
exports.render = exports.fireEvent = exports.cleanup = exports.act = void 0;
|
|
13
|
+
|
|
14
|
+
var _dom = require("@testing-library/dom");
|
|
15
|
+
|
|
16
|
+
Object.keys(_dom).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _dom[key]) return;
|
|
20
|
+
Object.defineProperty(exports, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _dom[key];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
var _svelte = require("svelte");
|
|
29
|
+
|
|
30
|
+
const _excluded = ["target"];
|
|
31
|
+
|
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
+
|
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
|
+
|
|
36
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
|
+
|
|
38
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
39
|
+
|
|
40
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
41
|
+
|
|
42
|
+
const containerCache = new Map();
|
|
43
|
+
const componentCache = new Set();
|
|
44
|
+
const svelteComponentOptions = ['anchor', 'props', 'hydrate', 'intro', 'context'];
|
|
45
|
+
|
|
46
|
+
const render = (Component, _ref = {}, {
|
|
47
|
+
container,
|
|
48
|
+
queries
|
|
49
|
+
} = {}) => {
|
|
50
|
+
let {
|
|
51
|
+
target
|
|
52
|
+
} = _ref,
|
|
53
|
+
options = _objectWithoutProperties(_ref, _excluded);
|
|
54
|
+
|
|
55
|
+
container = container || document.body;
|
|
56
|
+
target = target || container.appendChild(document.createElement('div'));
|
|
57
|
+
const ComponentConstructor = Component.default || Component;
|
|
58
|
+
|
|
59
|
+
const checkProps = options => {
|
|
60
|
+
const isProps = !Object.keys(options).some(option => svelteComponentOptions.includes(option)); // Check if any props and Svelte options were accidentally mixed.
|
|
61
|
+
|
|
62
|
+
if (!isProps) {
|
|
63
|
+
const unrecognizedOptions = Object.keys(options).filter(option => !svelteComponentOptions.includes(option));
|
|
64
|
+
|
|
65
|
+
if (unrecognizedOptions.length > 0) {
|
|
66
|
+
throw Error(`
|
|
67
|
+
Unknown options were found [${unrecognizedOptions}]. This might happen if you've mixed
|
|
68
|
+
passing in props with Svelte options into the render function. Valid Svelte options
|
|
69
|
+
are [${svelteComponentOptions}]. You can either change the prop names, or pass in your
|
|
70
|
+
props for that component via the \`props\` option.\n\n
|
|
71
|
+
Eg: const { /** Results **/ } = render(MyComponent, { props: { /** props here **/ } })\n\n
|
|
72
|
+
`);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return options;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
props: options
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
let component = new ComponentConstructor(_objectSpread({
|
|
84
|
+
target
|
|
85
|
+
}, checkProps(options)));
|
|
86
|
+
containerCache.set(container, {
|
|
87
|
+
target,
|
|
88
|
+
component
|
|
89
|
+
});
|
|
90
|
+
componentCache.add(component);
|
|
91
|
+
component.$$.on_destroy.push(() => {
|
|
92
|
+
componentCache.delete(component);
|
|
93
|
+
});
|
|
94
|
+
return _objectSpread({
|
|
95
|
+
container,
|
|
96
|
+
component,
|
|
97
|
+
debug: (el = container) => console.log((0, _dom.prettyDOM)(el)),
|
|
98
|
+
rerender: options => {
|
|
99
|
+
if (componentCache.has(component)) component.$destroy(); // eslint-disable-next-line no-new
|
|
100
|
+
|
|
101
|
+
component = new ComponentConstructor(_objectSpread({
|
|
102
|
+
target
|
|
103
|
+
}, checkProps(options)));
|
|
104
|
+
containerCache.set(container, {
|
|
105
|
+
target,
|
|
106
|
+
component
|
|
107
|
+
});
|
|
108
|
+
componentCache.add(component);
|
|
109
|
+
component.$$.on_destroy.push(() => {
|
|
110
|
+
componentCache.delete(component);
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
unmount: () => {
|
|
114
|
+
if (componentCache.has(component)) component.$destroy();
|
|
115
|
+
}
|
|
116
|
+
}, (0, _dom.getQueriesForElement)(container, queries));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
exports.render = render;
|
|
120
|
+
|
|
121
|
+
const cleanupAtContainer = container => {
|
|
122
|
+
const {
|
|
123
|
+
target,
|
|
124
|
+
component
|
|
125
|
+
} = containerCache.get(container);
|
|
126
|
+
if (componentCache.has(component)) component.$destroy();
|
|
127
|
+
|
|
128
|
+
if (target.parentNode === document.body) {
|
|
129
|
+
document.body.removeChild(target);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
containerCache.delete(container);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const cleanup = () => {
|
|
136
|
+
Array.from(containerCache.keys()).forEach(cleanupAtContainer);
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
exports.cleanup = cleanup;
|
|
140
|
+
|
|
141
|
+
const act = fn => {
|
|
142
|
+
const value = fn && fn();
|
|
143
|
+
|
|
144
|
+
if (value !== undefined && typeof value.then === 'function') {
|
|
145
|
+
return value.then(() => (0, _svelte.tick)());
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return (0, _svelte.tick)();
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
exports.act = act;
|
|
152
|
+
|
|
153
|
+
const fireEvent = async (...args) => {
|
|
154
|
+
const event = (0, _dom.fireEvent)(...args);
|
|
155
|
+
await (0, _svelte.tick)();
|
|
156
|
+
return event;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
exports.fireEvent = fireEvent;
|
|
160
|
+
Object.keys(_dom.fireEvent).forEach(key => {
|
|
161
|
+
fireEvent[key] = async (...args) => {
|
|
162
|
+
const event = _dom.fireEvent[key](...args);
|
|
163
|
+
|
|
164
|
+
await (0, _svelte.tick)();
|
|
165
|
+
return event;
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
/* eslint-disable import/export */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testing-library/svelte",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Simple and complete Svelte testing utilities that encourage good testing practices.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -51,36 +51,35 @@
|
|
|
51
51
|
"svelte": "3.x"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@testing-library/dom": "^
|
|
54
|
+
"@testing-library/dom": "^8.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/cli": "^7.6.2",
|
|
58
58
|
"@babel/core": "^7.6.2",
|
|
59
59
|
"@babel/plugin-transform-modules-commonjs": "^7.6.0",
|
|
60
60
|
"@babel/preset-env": "^7.6.2",
|
|
61
|
-
"@commitlint/cli": "^
|
|
62
|
-
"@commitlint/config-conventional": "^
|
|
61
|
+
"@commitlint/cli": "^13.1.0",
|
|
62
|
+
"@commitlint/config-conventional": "^13.1.0",
|
|
63
63
|
"@testing-library/jest-dom": "^5.0.2",
|
|
64
|
-
"@types/jest": "^
|
|
64
|
+
"@types/jest": "^27.0.0",
|
|
65
65
|
"all-contributors-cli": "^6.9.0",
|
|
66
66
|
"babel-eslint": "^10.0.3",
|
|
67
|
-
"babel-jest": "^
|
|
68
|
-
"doctoc": "^
|
|
67
|
+
"babel-jest": "^27.0.6",
|
|
68
|
+
"doctoc": "^2.0.0",
|
|
69
69
|
"eslint": "^7.2.0",
|
|
70
70
|
"eslint-config-standard": "^16.0.0",
|
|
71
71
|
"eslint-plugin-import": "^2.18.2",
|
|
72
72
|
"eslint-plugin-node": "^11.0.0",
|
|
73
|
-
"eslint-plugin-promise": "^
|
|
74
|
-
"eslint-plugin-simple-import-sort": "^
|
|
75
|
-
"eslint-plugin-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"lint-staged": "^10.0.0",
|
|
73
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
74
|
+
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
75
|
+
"eslint-plugin-svelte3": "^3.0.0",
|
|
76
|
+
"husky": "^7.0.1",
|
|
77
|
+
"jest": "^27.0.0",
|
|
78
|
+
"lint-staged": "^11.1.1",
|
|
80
79
|
"npm-run-all": "^4.1.5",
|
|
81
80
|
"prettier": "^2.0.1",
|
|
82
81
|
"svelte": "^3.0.0",
|
|
83
|
-
"svelte-jester": "^1.
|
|
82
|
+
"svelte-jester": "^2.1.4"
|
|
84
83
|
},
|
|
85
84
|
"husky": {
|
|
86
85
|
"hooks": {
|
|
@@ -119,6 +118,7 @@
|
|
|
119
118
|
"setupFilesAfterEnv": [
|
|
120
119
|
"@testing-library/jest-dom/extend-expect"
|
|
121
120
|
],
|
|
121
|
+
"testEnvironment": "jsdom",
|
|
122
122
|
"transform": {
|
|
123
123
|
"^.+\\.js$": "babel-jest",
|
|
124
124
|
"^.+\\.svelte$": "svelte-jester",
|