diff --git a/.all-contributorsrc b/.all-contributorsrc index 1f04b01..04f7270 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -2,9 +2,7 @@ "projectName": "svelte-testing-library", "projectOwner": "testing-library", "repoType": "github", - "files": [ - "README.md" - ], + "files": ["README.md"], "imageSize": 100, "commit": false, "contributors": [ @@ -13,133 +11,91 @@ "name": "Ben Monro", "avatar_url": "https://avatars3.githubusercontent.com/u/399236?v=4", "profile": "https://github.com/benmonro", - "contributions": [ - "code", - "test", - "ideas", - "doc" - ] + "contributions": ["code", "test", "ideas", "doc"] }, { "login": "EmilTholin", "name": "Emil Tholin", "avatar_url": "https://avatars0.githubusercontent.com/u/11573167?v=4", "profile": "https://twitter.com/EmilTholin", - "contributions": [ - "code", - "test", - "ideas" - ] + "contributions": ["code", "test", "ideas"] }, { "login": "oieduardorabelo", "name": "Eduardo Rabelo", "avatar_url": "https://avatars1.githubusercontent.com/u/829902?v=4", "profile": "https://medium.com/@oieduardorabelo", - "contributions": [ - "test", - "code", - "doc", - "example" - ] + "contributions": ["test", "code", "doc", "example"] }, { "login": "timdeschryver", "name": "Tim Deschryver", "avatar_url": "https://avatars1.githubusercontent.com/u/28659384?v=4", "profile": "http://timdeschryver.dev", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "ematipico", "name": "Emanuele", "avatar_url": "https://avatars3.githubusercontent.com/u/602478?v=4", "profile": "http://www.ematipico.com", - "contributions": [ - "code", - "test", - "doc" - ] + "contributions": ["code", "test", "doc"] }, { "login": "pngwn", "name": "pngwn", "avatar_url": "https://avatars1.githubusercontent.com/u/12937446?v=4", "profile": "https://github.com/pngwn", - "contributions": [ - "code", - "test" - ] + "contributions": ["code", "test"] }, { "login": "eps1lon", "name": "Sebastian Silbermann", "avatar_url": "https://avatars3.githubusercontent.com/u/12292047?v=4", "profile": "https://twitter.com/sebsilbermann", - "contributions": [ - "code" - ] + "contributions": ["code"] }, { "login": "mihar-22", "name": "Rahim Alwer", "avatar_url": "https://avatars3.githubusercontent.com/u/14304599?s=460&v=4", "profile": "https://github.com/mihar-22", - "contributions": [ - "code", - "doc", - "test", - "review" - ] + "contributions": ["code", "doc", "test", "review"] }, { "login": "MirrorBytes", "name": "Bob", "avatar_url": "https://avatars3.githubusercontent.com/u/22119469?v=4", "profile": "https://github.com/MirrorBytes", - "contributions": [ - "bug", - "code" - ] + "contributions": ["bug", "code"] }, { "login": "ronmerkin", "name": "Ron Merkin", "avatar_url": "https://avatars.githubusercontent.com/u/17492527?v=4", "profile": "https://github.com/ronmerkin", - "contributions": [ - "code" - ] + "contributions": ["code"] }, { "login": "benmccann", "name": "Ben McCann", "avatar_url": "https://avatars.githubusercontent.com/u/322311?v=4", "profile": "http://www.benmccann.com", - "contributions": [ - "test" - ] + "contributions": ["test"] }, { "login": "jgbowser", "name": "John Bowser", "avatar_url": "https://avatars.githubusercontent.com/u/66637570?v=4", "profile": "https://johnbowser.dev/", - "contributions": [ - "code", - "test" - ] + "contributions": ["code", "test"] }, { "login": "ysitbon", "name": "Yoann", "avatar_url": "https://avatars.githubusercontent.com/u/1370679?v=4", "profile": "https://github.com/ysitbon", - "contributions": [ - "code" - ] + "contributions": ["code"] } ], "contributorsPerLine": 7, diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4851fc4..44d09ef 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,25 +1,25 @@ version: 2 updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - time: "10:00" - open-pull-requests-limit: 10 - ignore: - - dependency-name: husky - versions: - - 5.0.9 - - 5.1.0 - - 5.1.1 - - 5.1.2 - - 5.1.3 - - 5.2.0 - - dependency-name: "@commitlint/config-conventional" - versions: - - 12.0.0 - - 12.0.1 - - dependency-name: "@commitlint/cli" - versions: - - 12.0.0 - - 12.0.1 + - package-ecosystem: npm + directory: '/' + schedule: + interval: daily + time: '10:00' + open-pull-requests-limit: 10 + ignore: + - dependency-name: husky + versions: + - 5.0.9 + - 5.1.0 + - 5.1.1 + - 5.1.2 + - 5.1.3 + - 5.2.0 + - dependency-name: '@commitlint/config-conventional' + versions: + - 12.0.0 + - 12.0.1 + - dependency-name: '@commitlint/cli' + versions: + - 12.0.0 + - 12.0.1 diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index ad6df65..376bf57 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -1,4 +1,4 @@ -name: "Lint PR" +name: 'Lint PR' on: pull_request_target: diff --git a/.prettierrc.yaml b/.prettierrc.yaml index e1bf864..0a2ace3 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -4,6 +4,6 @@ trailingComma: es5 plugins: - prettier-plugin-svelte overrides: - - files: "*.svelte" + - files: '*.svelte' options: parser: svelte diff --git a/README.md b/README.md index 0808979..48bf5ce 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ - - [The Problem](#the-problem) - [This Solution](#this-solution) - [Installation](#installation) @@ -119,23 +118,25 @@ Thanks goes to these people ([emoji key][emojis]):
Ben Monro 💻 ⚠️ 🤔 📖 |
- Emil Tholin 💻 ⚠️ 🤔 |
- Eduardo Rabelo ⚠️ 💻 📖 💡 |
- Tim Deschryver 📖 |
- Emanuele 💻 ⚠️ 📖 |
- pngwn 💻 ⚠️ |
- Sebastian Silbermann 💻 |
-
Rahim Alwer 💻 📖 ⚠️ 👀 |
- Bob 🐛 💻 |
- Ron Merkin 💻 |
- Ben McCann ⚠️ |
- John Bowser 💻 ⚠️ |
- Yoann 💻 |
- |
Ben Monro 💻 ⚠️ 🤔 📖 |
+ Emil Tholin 💻 ⚠️ 🤔 |
+ Eduardo Rabelo ⚠️ 💻 📖 💡 |
+ Tim Deschryver 📖 |
+ Emanuele 💻 ⚠️ 📖 |
+ pngwn 💻 ⚠️ |
+ Sebastian Silbermann 💻 |
+
Rahim Alwer 💻 📖 ⚠️ 👀 |
+ Bob 🐛 💻 |
+ Ron Merkin 💻 |
+ Ben McCann ⚠️ |
+ John Bowser 💻 ⚠️ |
+ Yoann 💻 |
+
, + renderOptions?: RenderOptions): RenderResult/** @@ -50,13 +67,19 @@ export function cleanup(): void * Fires DOM events on an element provided by @testing-library/dom. Since Svelte needs to flush * pending state changes via `tick`, these methods have been override and now return a promise. */ -export type FireFunction = (element: Document | Element | Window, event: Event) => Promise ; +export type FireFunction = ( + element: Document | Element | Window, + event: Event +) => Promise export type FireObject = { - [K in EventType]: (element: Document | Element | Window, options?: Record ) => Promise ; -}; + [K in EventType]: ( + element: Document | Element | Window, + options?: Record + ) => Promise +} -export const fireEvent: FireFunction & FireObject; +export const fireEvent: FireFunction & FireObject /** * Calls a function and notifies Svelte to flush any pending state changes. diff --git a/vite.config.js b/vite.config.js index a32b963..28c9e33 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,9 +3,9 @@ import { defineConfig } from 'vite' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [svelte()], - test: { - environment: 'jsdom', - setupFiles: ['./src/test-setup.js'], - }, + plugins: [svelte()], + test: { + environment: 'jsdom', + setupFiles: ['./src/test-setup.js'], + }, })