@testing-library/svelte 3.1.0 → 3.1.3
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 +1 -0
- package/dist/pure.js +6 -6
- package/package.json +9 -9
- package/CHANGELOG.md +0 -5
package/README.md
CHANGED
|
@@ -134,6 +134,7 @@ Thanks goes to these people ([emoji key][emojis]):
|
|
|
134
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
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
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>
|
|
137
138
|
</tr>
|
|
138
139
|
</table>
|
|
139
140
|
|
package/dist/pure.js
CHANGED
|
@@ -80,7 +80,7 @@ const render = (Component, _ref = {}, {
|
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
let component = new ComponentConstructor(_objectSpread({
|
|
84
84
|
target
|
|
85
85
|
}, checkProps(options)));
|
|
86
86
|
containerCache.set(container, {
|
|
@@ -98,16 +98,16 @@ const render = (Component, _ref = {}, {
|
|
|
98
98
|
rerender: options => {
|
|
99
99
|
if (componentCache.has(component)) component.$destroy(); // eslint-disable-next-line no-new
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
component = new ComponentConstructor(_objectSpread({
|
|
102
102
|
target
|
|
103
103
|
}, checkProps(options)));
|
|
104
104
|
containerCache.set(container, {
|
|
105
105
|
target,
|
|
106
|
-
|
|
106
|
+
component
|
|
107
107
|
});
|
|
108
|
-
componentCache.add(
|
|
109
|
-
|
|
110
|
-
componentCache.delete(
|
|
108
|
+
componentCache.add(component);
|
|
109
|
+
component.$$.on_destroy.push(() => {
|
|
110
|
+
componentCache.delete(component);
|
|
111
111
|
});
|
|
112
112
|
},
|
|
113
113
|
unmount: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testing-library/svelte",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
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",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/testing-library/svelte-testing-library/issues"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">= 10"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"testing",
|
|
@@ -51,31 +51,31 @@
|
|
|
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
64
|
"@types/jest": "^27.0.0",
|
|
65
65
|
"all-contributors-cli": "^6.9.0",
|
|
66
66
|
"babel-eslint": "^10.0.3",
|
|
67
|
-
"babel-jest": "^27.0.
|
|
67
|
+
"babel-jest": "^27.0.6",
|
|
68
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": "^
|
|
73
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
74
74
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
75
75
|
"eslint-plugin-svelte3": "^3.0.0",
|
|
76
|
-
"husky": "^
|
|
76
|
+
"husky": "^7.0.1",
|
|
77
77
|
"jest": "^27.0.0",
|
|
78
|
-
"lint-staged": "^
|
|
78
|
+
"lint-staged": "^11.1.1",
|
|
79
79
|
"npm-run-all": "^4.1.5",
|
|
80
80
|
"prettier": "^2.0.1",
|
|
81
81
|
"svelte": "^3.0.0",
|