test: render with events utility refactoring #2236
Annotations
10 errors and 1 warning
src/tests/lib/components/Checkbox.spec.ts > Checkbox > should trigger select on container:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Checkbox.spec.ts:66:29
❯ src/tests/lib/components/Checkbox.spec.ts:65:5
|
src/tests/lib/components/Checkbox.spec.ts > Checkbox > should trigger select on input:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Checkbox.spec.ts:81:29
❯ src/tests/lib/components/Checkbox.spec.ts:80:5
|
src/tests/lib/components/Checkbox.spec.ts > Checkbox > should not trigger nnsChange event when disabled and clicked:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Checkbox.spec.ts:115:27
|
src/tests/lib/components/Checkbox.spec.ts > Checkbox > should not trigger nnsChange event when disabled and key pressed:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Checkbox.spec.ts:132:27
|
src/tests/lib/components/Collapsible.spec.ts > Collapsible > should not toggle if external toggle:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Collapsible.spec.ts:116:40
|
src/tests/lib/components/Modal.spec.ts > Modal > should trigger close modal on click on backdrop:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Modal.spec.ts:112:29
❯ src/tests/lib/components/Modal.spec.ts:111:5
|
src/tests/lib/components/Modal.spec.ts > Modal > should trigger close modal on Esc:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Modal.spec.ts:126:29
❯ src/tests/lib/components/Modal.spec.ts:125:5
|
src/tests/lib/components/Modal.spec.ts > Modal > should not close modal on not Esc keypress:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Modal.spec.ts:137:27
|
src/tests/lib/components/Modal.spec.ts > Modal > should not close modal on Esc when busy = true:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Modal.spec.ts:151:27
|
src/tests/lib/components/Modal.spec.ts > Modal > should trigger close modal on click on close button:
node_modules/@testing-library/svelte/src/core/validate-options.js#L33
UnknownSvelteOptionsError: Unknown options.
Unknown: [ events ]
Allowed: [ target, accessors, anchor, props, hydrate, intro, context ]
To pass both Svelte options and props to a component,
or to use props that share a name with a Svelte option,
you must place all your props under the `props` key:
render(Component, { props: { /** props here **/ } })
❯ Module.<anonymous> node_modules/@testing-library/svelte/src/core/validate-options.js:33:11
❯ Module.render node_modules/@testing-library/svelte/src/pure.js:59:35
❯ src/tests/lib/components/Modal.spec.ts:194:31
❯ src/tests/lib/components/Modal.spec.ts:193:5
|
e2e
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|