create-rstack 3.2.1 → 3.2.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/package.json +2 -2
- package/template-app-lit/package.json +1 -1
- package/template-app-lit/rstack.config.js +8 -6
- package/template-app-lit-ts/package.json +1 -1
- package/template-app-lit-ts/rstack.config.ts +6 -6
- package/template-app-lit-ts/tests/tsconfig.json +7 -0
- package/template-app-preact/package.json +1 -1
- package/template-app-preact/rstack.config.js +6 -3
- package/template-app-preact-ts/package.json +1 -1
- package/template-app-preact-ts/rstack.config.ts +6 -3
- package/template-app-react/package.json +1 -1
- package/template-app-react/rstack.config.js +6 -3
- package/template-app-react-ts/package.json +1 -1
- package/template-app-react-ts/rstack.config.ts +6 -3
- package/template-app-solid/package.json +3 -3
- package/template-app-solid/rstack.config.js +8 -3
- package/template-app-solid-ts/package.json +3 -3
- package/template-app-solid-ts/rstack.config.ts +6 -3
- package/template-app-svelte/package.json +2 -2
- package/template-app-svelte/rstack.config.js +8 -3
- package/template-app-svelte-ts/package.json +3 -3
- package/template-app-svelte-ts/rstack.config.ts +6 -3
- package/template-app-svelte-ts/tests/tsconfig.json +1 -1
- package/template-app-vanilla/package.json +1 -1
- package/template-app-vanilla/rstack.config.js +8 -2
- package/template-app-vanilla/tests/dom.test.js +1 -1
- package/template-app-vanilla-ts/package.json +1 -1
- package/template-app-vanilla-ts/rstack.config.ts +6 -2
- package/template-app-vanilla-ts/tests/dom.test.ts +1 -1
- package/template-app-vue/package.json +1 -1
- package/template-app-vue/rstack.config.js +8 -3
- package/template-app-vue-ts/package.json +2 -2
- package/template-app-vue-ts/rstack.config.ts +6 -3
- package/template-doc/package.json +1 -1
- package/template-doc/rstack.config.ts +1 -1
- package/template-doc-i18n/package.json +1 -1
- package/template-doc-i18n/rstack.config.ts +1 -1
- package/template-lib-node/package.json +2 -6
- package/template-lib-node/rstack.config.js +9 -9
- package/template-lib-node-ts/package.json +1 -1
- package/template-lib-node-ts/rstack.config.ts +6 -7
- package/template-lib-node-ts/tests/tsconfig.json +8 -0
- package/template-lib-react/package.json +2 -6
- package/template-lib-react/rstack.config.js +6 -8
- package/template-lib-react-ts/package.json +1 -1
- package/template-lib-react-ts/rstack.config.ts +6 -8
- package/template-lib-react-ts/tests/tsconfig.json +1 -1
- package/template-lib-react-ts/tsconfig.json +1 -1
- package/template-lib-solid/package.json +3 -3
- package/template-lib-solid/rstack.config.js +9 -11
- package/template-lib-solid-ts/package.json +4 -4
- package/template-lib-solid-ts/rstack.config.ts +7 -11
- package/template-lib-solid-ts/tests/tsconfig.json +1 -1
- package/template-lib-solid-ts/tsconfig.json +1 -1
- package/template-lib-svelte/package.json +3 -7
- package/template-lib-svelte/rstack.config.js +8 -12
- package/template-lib-svelte-ts/package.json +4 -4
- package/template-lib-svelte-ts/rstack.config.ts +6 -12
- package/template-lib-svelte-ts/tests/tsconfig.json +3 -1
- package/template-lib-svelte-ts/tsconfig.json +4 -4
- package/template-lib-vue/package.json +2 -6
- package/template-lib-vue/rstack.config.js +8 -8
- package/template-lib-vue/tests/index.test.js +3 -2
- package/template-lib-vue-ts/package.json +2 -2
- package/template-lib-vue-ts/rstack.config.ts +6 -8
- package/template-lib-vue-ts/tests/index.test.ts +3 -2
- package/template-lib-vue-ts/tests/tsconfig.json +2 -1
- package/template-lib-vue-ts/tsconfig.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rstack",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Create a new Rstack project",
|
|
5
5
|
"homepage": "https://rstack.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^24.13.3",
|
|
36
36
|
"typescript": "^7.0.2",
|
|
37
|
-
"rstack": "0.6.
|
|
37
|
+
"rstack": "0.6.3"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.12.0"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app({
|
|
@@ -13,11 +13,13 @@ define.app({
|
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
define.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
define.lint(({ js, rstestPlugin }) => [
|
|
17
|
+
js.configs.recommended,
|
|
18
|
+
{
|
|
19
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
20
|
+
...rstestPlugin.configs.recommended,
|
|
21
|
+
},
|
|
22
|
+
]);
|
|
21
23
|
|
|
22
24
|
define.fmt({
|
|
23
25
|
singleQuote: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app({
|
|
@@ -12,13 +12,13 @@ define.app({
|
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
define.
|
|
16
|
-
testEnvironment: 'happy-dom',
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
define.lint(({ js, ts }) => [
|
|
15
|
+
define.lint(({ js, ts, rstestPlugin }) => [
|
|
20
16
|
js.configs.recommended,
|
|
21
17
|
ts.configs.recommendedTypeChecked,
|
|
18
|
+
{
|
|
19
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
20
|
+
...rstestPlugin.configs.recommended,
|
|
21
|
+
},
|
|
22
22
|
]);
|
|
23
23
|
|
|
24
24
|
define.fmt({
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app(async () => {
|
|
6
6
|
const { pluginPreact } = await import('@rsbuild/plugin-preact');
|
|
7
|
-
|
|
8
7
|
return {
|
|
9
8
|
plugins: [pluginPreact()],
|
|
10
9
|
};
|
|
@@ -14,10 +13,14 @@ define.test({
|
|
|
14
13
|
setupFiles: ['./tests/rstest.setup.js'],
|
|
15
14
|
});
|
|
16
15
|
|
|
17
|
-
define.lint(({ js, reactHooksPlugin, reactPlugin }) => [
|
|
16
|
+
define.lint(({ js, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
|
|
18
17
|
js.configs.recommended,
|
|
19
18
|
reactPlugin.configs.recommended,
|
|
20
19
|
reactHooksPlugin.configs.recommended,
|
|
20
|
+
{
|
|
21
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
22
|
+
...rstestPlugin.configs.recommended,
|
|
23
|
+
},
|
|
21
24
|
]);
|
|
22
25
|
|
|
23
26
|
define.fmt({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app(async () => {
|
|
5
5
|
const { pluginPreact } = await import('@rsbuild/plugin-preact');
|
|
6
|
-
|
|
7
6
|
return {
|
|
8
7
|
plugins: [pluginPreact()],
|
|
9
8
|
};
|
|
@@ -13,11 +12,15 @@ define.test({
|
|
|
13
12
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
14
13
|
});
|
|
15
14
|
|
|
16
|
-
define.lint(({ js, ts, reactHooksPlugin, reactPlugin }) => [
|
|
15
|
+
define.lint(({ js, ts, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
|
|
17
16
|
js.configs.recommended,
|
|
18
17
|
ts.configs.recommendedTypeChecked,
|
|
19
18
|
reactPlugin.configs.recommended,
|
|
20
19
|
reactHooksPlugin.configs.recommended,
|
|
20
|
+
{
|
|
21
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
22
|
+
...rstestPlugin.configs.recommended,
|
|
23
|
+
},
|
|
21
24
|
]);
|
|
22
25
|
|
|
23
26
|
define.fmt({
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app(async () => {
|
|
6
6
|
const { pluginReact } = await import('@rsbuild/plugin-react');
|
|
7
|
-
|
|
8
7
|
return {
|
|
9
8
|
plugins: [pluginReact()],
|
|
10
9
|
};
|
|
@@ -14,10 +13,14 @@ define.test({
|
|
|
14
13
|
setupFiles: ['./tests/rstest.setup.js'],
|
|
15
14
|
});
|
|
16
15
|
|
|
17
|
-
define.lint(({ js, reactHooksPlugin, reactPlugin }) => [
|
|
16
|
+
define.lint(({ js, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
|
|
18
17
|
js.configs.recommended,
|
|
19
18
|
reactPlugin.configs.recommended,
|
|
20
19
|
reactHooksPlugin.configs.recommended,
|
|
20
|
+
{
|
|
21
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
22
|
+
...rstestPlugin.configs.recommended,
|
|
23
|
+
},
|
|
21
24
|
]);
|
|
22
25
|
|
|
23
26
|
define.fmt({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app(async () => {
|
|
5
5
|
const { pluginReact } = await import('@rsbuild/plugin-react');
|
|
6
|
-
|
|
7
6
|
return {
|
|
8
7
|
plugins: [pluginReact()],
|
|
9
8
|
};
|
|
@@ -13,11 +12,15 @@ define.test({
|
|
|
13
12
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
14
13
|
});
|
|
15
14
|
|
|
16
|
-
define.lint(({ js, ts, reactPlugin, reactHooksPlugin }) => [
|
|
15
|
+
define.lint(({ js, ts, reactPlugin, reactHooksPlugin, rstestPlugin }) => [
|
|
17
16
|
js.configs.recommended,
|
|
18
17
|
ts.configs.recommendedTypeChecked,
|
|
19
18
|
reactPlugin.configs.recommended,
|
|
20
19
|
reactHooksPlugin.configs.recommended,
|
|
20
|
+
{
|
|
21
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
22
|
+
...rstestPlugin.configs.recommended,
|
|
23
|
+
},
|
|
21
24
|
]);
|
|
22
25
|
|
|
23
26
|
define.fmt({
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"test:watch": "rs test --watch"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"solid-js": "^1.9.
|
|
17
|
+
"solid-js": "^1.9.15"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@rsbuild/plugin-babel": "^2.0
|
|
20
|
+
"@rsbuild/plugin-babel": "^2.1.0",
|
|
21
21
|
"@rsbuild/plugin-solid": "^1.2.2",
|
|
22
22
|
"@solidjs/testing-library": "^0.8.10",
|
|
23
23
|
"@testing-library/jest-dom": "^7.0.1",
|
|
24
24
|
"happy-dom": "^20.11.2",
|
|
25
|
-
"rstack": "^0.6.
|
|
25
|
+
"rstack": "^0.6.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app(async () => {
|
|
6
6
|
const { pluginBabel } = await import('@rsbuild/plugin-babel');
|
|
7
7
|
const { pluginSolid } = await import('@rsbuild/plugin-solid');
|
|
8
|
-
|
|
9
8
|
return {
|
|
10
9
|
plugins: [
|
|
11
10
|
pluginBabel({
|
|
@@ -20,7 +19,13 @@ define.test({
|
|
|
20
19
|
setupFiles: ['./tests/rstest.setup.js'],
|
|
21
20
|
});
|
|
22
21
|
|
|
23
|
-
define.lint(({ js }) => [
|
|
22
|
+
define.lint(({ js, rstestPlugin }) => [
|
|
23
|
+
js.configs.recommended,
|
|
24
|
+
{
|
|
25
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
26
|
+
...rstestPlugin.configs.recommended,
|
|
27
|
+
},
|
|
28
|
+
]);
|
|
24
29
|
|
|
25
30
|
define.fmt({
|
|
26
31
|
singleQuote: true,
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"test:watch": "rs test --watch"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"solid-js": "^1.9.
|
|
17
|
+
"solid-js": "^1.9.15"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@rsbuild/plugin-babel": "^2.0
|
|
20
|
+
"@rsbuild/plugin-babel": "^2.1.0",
|
|
21
21
|
"@rsbuild/plugin-solid": "^1.2.2",
|
|
22
22
|
"@solidjs/testing-library": "^0.8.10",
|
|
23
23
|
"@testing-library/jest-dom": "^7.0.1",
|
|
24
24
|
"@types/node": "^24.13.3",
|
|
25
25
|
"happy-dom": "^20.11.2",
|
|
26
|
-
"rstack": "^0.6.
|
|
26
|
+
"rstack": "^0.6.3",
|
|
27
27
|
"typescript": "^7.0.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app(async () => {
|
|
5
5
|
const { pluginBabel } = await import('@rsbuild/plugin-babel');
|
|
6
6
|
const { pluginSolid } = await import('@rsbuild/plugin-solid');
|
|
7
|
-
|
|
8
7
|
return {
|
|
9
8
|
plugins: [
|
|
10
9
|
pluginBabel({
|
|
@@ -19,9 +18,13 @@ define.test({
|
|
|
19
18
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
20
19
|
});
|
|
21
20
|
|
|
22
|
-
define.lint(({ js, ts }) => [
|
|
21
|
+
define.lint(({ js, ts, rstestPlugin }) => [
|
|
23
22
|
js.configs.recommended,
|
|
24
23
|
ts.configs.recommendedTypeChecked,
|
|
24
|
+
{
|
|
25
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
26
|
+
...rstestPlugin.configs.recommended,
|
|
27
|
+
},
|
|
25
28
|
]);
|
|
26
29
|
|
|
27
30
|
define.fmt({
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test:watch": "rs test --watch"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"svelte": "^5.56.
|
|
17
|
+
"svelte": "^5.56.9"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@rsbuild/plugin-svelte": "^2.0.1",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"@testing-library/svelte": "^5.4.2",
|
|
23
23
|
"happy-dom": "^20.11.2",
|
|
24
24
|
"prettier-plugin-svelte": "^4.1.1",
|
|
25
|
-
"rstack": "^0.6.
|
|
25
|
+
"rstack": "^0.6.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app(async () => {
|
|
6
6
|
const { pluginSvelte } = await import('@rsbuild/plugin-svelte');
|
|
7
|
-
|
|
8
7
|
return {
|
|
9
8
|
plugins: [pluginSvelte()],
|
|
10
9
|
};
|
|
@@ -14,7 +13,13 @@ define.test({
|
|
|
14
13
|
setupFiles: ['./tests/rstest.setup.js'],
|
|
15
14
|
});
|
|
16
15
|
|
|
17
|
-
define.lint(({ js }) => [
|
|
16
|
+
define.lint(({ js, rstestPlugin }) => [
|
|
17
|
+
js.configs.recommended,
|
|
18
|
+
{
|
|
19
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
20
|
+
...rstestPlugin.configs.recommended,
|
|
21
|
+
},
|
|
22
|
+
]);
|
|
18
23
|
|
|
19
24
|
define.fmt({
|
|
20
25
|
plugins: ['prettier-plugin-svelte'],
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test:watch": "rs test --watch"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"svelte": "^5.56.
|
|
17
|
+
"svelte": "^5.56.9"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@rsbuild/plugin-svelte": "^2.0.1",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@types/node": "^24.13.3",
|
|
24
24
|
"happy-dom": "^20.11.2",
|
|
25
25
|
"prettier-plugin-svelte": "^4.1.1",
|
|
26
|
-
"rstack": "^0.6.
|
|
27
|
-
"svelte-check": "^4.7.
|
|
26
|
+
"rstack": "^0.6.3",
|
|
27
|
+
"svelte-check": "^4.7.6",
|
|
28
28
|
"typescript": "^6.0.3"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app(async () => {
|
|
5
5
|
const { pluginSvelte } = await import('@rsbuild/plugin-svelte');
|
|
6
|
-
|
|
7
6
|
return {
|
|
8
7
|
plugins: [pluginSvelte()],
|
|
9
8
|
};
|
|
@@ -13,9 +12,13 @@ define.test({
|
|
|
13
12
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
14
13
|
});
|
|
15
14
|
|
|
16
|
-
define.lint(({ js, ts }) => [
|
|
15
|
+
define.lint(({ js, ts, rstestPlugin }) => [
|
|
17
16
|
js.configs.recommended,
|
|
18
17
|
ts.configs.recommendedTypeChecked,
|
|
18
|
+
{
|
|
19
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
20
|
+
...rstestPlugin.configs.recommended,
|
|
21
|
+
},
|
|
19
22
|
]);
|
|
20
23
|
|
|
21
24
|
define.fmt({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app({
|
|
@@ -10,7 +10,13 @@ define.test({
|
|
|
10
10
|
setupFiles: ['./tests/rstest.setup.js'],
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
define.lint(({ js }) => [
|
|
13
|
+
define.lint(({ js, rstestPlugin }) => [
|
|
14
|
+
js.configs.recommended,
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
17
|
+
...rstestPlugin.configs.recommended,
|
|
18
|
+
},
|
|
19
|
+
]);
|
|
14
20
|
|
|
15
21
|
define.fmt({
|
|
16
22
|
singleQuote: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect, test } from 'rstack/test';
|
|
2
2
|
import { screen } from '@testing-library/dom';
|
|
3
3
|
|
|
4
|
-
test('
|
|
4
|
+
test('renders content', () => {
|
|
5
5
|
document.body.innerHTML = `
|
|
6
6
|
<span data-testid="not-empty"><span data-testid="empty"></span></span>
|
|
7
7
|
<div data-testid="visible">Visible Example</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app({
|
|
@@ -9,9 +9,13 @@ define.test({
|
|
|
9
9
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
define.lint(({ js, ts }) => [
|
|
12
|
+
define.lint(({ js, ts, rstestPlugin }) => [
|
|
13
13
|
js.configs.recommended,
|
|
14
14
|
ts.configs.recommendedTypeChecked,
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
17
|
+
...rstestPlugin.configs.recommended,
|
|
18
|
+
},
|
|
15
19
|
]);
|
|
16
20
|
|
|
17
21
|
define.fmt({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect, test } from 'rstack/test';
|
|
2
2
|
import { screen } from '@testing-library/dom';
|
|
3
3
|
|
|
4
|
-
test('
|
|
4
|
+
test('renders content', () => {
|
|
5
5
|
document.body.innerHTML = `
|
|
6
6
|
<span data-testid="not-empty"><span data-testid="empty"></span></span>
|
|
7
7
|
<div data-testid="visible">Visible Example</div>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
//
|
|
2
|
+
// Configuration guide: https://rstack.rs/config
|
|
3
3
|
import { define } from 'rstack';
|
|
4
4
|
|
|
5
5
|
define.app(async () => {
|
|
6
6
|
const { pluginVue } = await import('@rsbuild/plugin-vue');
|
|
7
|
-
|
|
8
7
|
return {
|
|
9
8
|
plugins: [pluginVue()],
|
|
10
9
|
};
|
|
@@ -14,7 +13,13 @@ define.test({
|
|
|
14
13
|
setupFiles: ['./tests/rstest.setup.js'],
|
|
15
14
|
});
|
|
16
15
|
|
|
17
|
-
define.lint(({ js }) => [
|
|
16
|
+
define.lint(({ js, rstestPlugin }) => [
|
|
17
|
+
js.configs.recommended,
|
|
18
|
+
{
|
|
19
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
20
|
+
...rstestPlugin.configs.recommended,
|
|
21
|
+
},
|
|
22
|
+
]);
|
|
18
23
|
|
|
19
24
|
define.fmt({
|
|
20
25
|
singleQuote: true,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.app(async () => {
|
|
5
5
|
const { pluginVue } = await import('@rsbuild/plugin-vue');
|
|
6
|
-
|
|
7
6
|
return {
|
|
8
7
|
plugins: [pluginVue()],
|
|
9
8
|
};
|
|
@@ -13,9 +12,13 @@ define.test({
|
|
|
13
12
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
14
13
|
});
|
|
15
14
|
|
|
16
|
-
define.lint(({ js, ts }) => [
|
|
15
|
+
define.lint(({ js, ts, rstestPlugin }) => [
|
|
17
16
|
js.configs.recommended,
|
|
18
17
|
ts.configs.recommendedTypeChecked,
|
|
18
|
+
{
|
|
19
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
20
|
+
...rstestPlugin.configs.recommended,
|
|
21
|
+
},
|
|
19
22
|
]);
|
|
20
23
|
|
|
21
24
|
define.fmt({
|