svelte-declarative-testing 0.2.0 → 0.3.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/id-test.code DELETED
@@ -1,44 +0,0 @@
1
- <script>
2
- import { Test, Describe, Check } from '../../src/components/testing-library';
3
- </script>
4
-
5
- <Describe label="Basic test">
6
- {#snippet tests()}
7
- <Test it="passes">
8
- <button>Click me</button>
9
-
10
- {#snippet checks()}
11
- <Check
12
- fn={({ getByRole }) => {
13
- expect(getByRole('button', { name: 'Click me' })).not.toBe(null);
14
- }}
15
- />
16
- {/snippet}
17
- </Test>
18
-
19
- <Describe label="Nested describe">
20
- {#snippet tests()}
21
- <Test it="also passes">
22
- <button>Click me</button>
23
-
24
- {#snippet checks()}
25
- <Check
26
- fn={({ getByRole }) => {
27
- expect(getByRole('button', { name: 'Click me' })).not.toBe(null);
28
- }}
29
- />
30
- {/snippet}
31
- </Test>
32
- {/snippet}
33
- </Describe>
34
- {/snippet}
35
- </Describe>
36
- {globalThis[Symbol()] ? function () {
37
- describe("Basic test", () => {
38
- test("passes", () => {})
39
- describe("Nested describe", () => {
40
- test("also passes", () => {})
41
-
42
- })
43
- })
44
- } : ""}
package/id-test.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":[""],"sourcesContent":["<script>\n import { Test, Describe, Check } from '../../src/components/testing-library';\n</script>\n\n<Describe label=\"Basic test\">\n {#snippet tests()}\n <Test it=\"passes\">\n <button>Click me</button>\n\n {#snippet checks()}\n <Check\n fn={({ getByRole }) => {\n expect(getByRole('button', { name: 'Click me' })).not.toBe(null);\n }}\n />\n {/snippet}\n </Test>\n\n <Describe label=\"Nested describe\">\n {#snippet tests()}\n <Test it=\"also passes\">\n <button>Click me</button>\n\n {#snippet checks()}\n <Check\n fn={({ getByRole }) => {\n expect(getByRole('button', { name: 'Click me' })).not.toBe(null);\n }}\n />\n {/snippet}\n </Test>\n {/snippet}\n </Describe>\n {/snippet}\n</Describe>\n"],"names":[],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAI;AACJ;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;"}
@@ -1,7 +0,0 @@
1
- import { createContext, Snippet } from 'svelte';
2
-
3
- export const [getAddTest, setAddTest] = createContext<(fn: () => void | Promise<void>) => void>();
4
-
5
- export const [getAddCheck, setAddCheck] = createContext<(fn: () => void | Promise<void>) => void>();
6
-
7
- export const [getSuiteRenderSnippet, setSuiteRenderSnippet] = createContext<Snippet | undefined>();
@@ -1,3 +0,0 @@
1
- // TODO fix type
2
- declare const getPlugins: () => any[];
3
- export default getPlugins;