@testing-library/svelte
Version:
Simple and complete Svelte testing utilities that encourage good testing practices.
134 lines (133 loc) • 4.3 kB
JSON
{
"name": "@testing-library/svelte",
"version": "5.2.7",
"description": "Simple and complete Svelte testing utilities that encourage good testing practices.",
"main": "src/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./src/index.js"
},
"./svelte5": {
"types": "./types/index.d.ts",
"default": "./src/index.js"
},
"./vitest": {
"types": "./types/vitest.d.ts",
"default": "./src/vitest.js"
},
"./vite": {
"types": "./types/vite.d.ts",
"default": "./src/vite.js"
}
},
"type": "module",
"types": "types/index.d.ts",
"license": "MIT",
"homepage": "https://github.com/testing-library/svelte-testing-library#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/testing-library/svelte-testing-library.git"
},
"bugs": {
"url": "https://github.com/testing-library/svelte-testing-library/issues"
},
"engines": {
"node": ">= 10"
},
"keywords": [
"testing",
"svelte",
"ui",
"dom",
"jsdom",
"unit",
"integration",
"functional",
"end-to-end",
"e2e"
],
"files": [
"src",
"types",
"!__tests__"
],
"scripts": {
"all": "npm-run-all contributors:generate toc format types build test:vitest:* test:jest",
"toc": "doctoc README.md",
"lint": "prettier . --check && eslint .",
"lint:delta": "npm-run-all -p prettier:delta eslint:delta",
"prettier:delta": "prettier --check `./scripts/changed-files`",
"eslint:delta": "eslint `./scripts/changed-files`",
"format": "prettier . --write && eslint . --fix",
"format:delta": "npm-run-all format:prettier:delta format:eslint:delta",
"format:prettier:delta": "prettier --write `./scripts/changed-files`",
"format:eslint:delta": "eslint --fix `./scripts/changed-files`",
"setup": "npm install && npm run all",
"test": "vitest run --coverage",
"test:watch": "vitest",
"test:vitest:jsdom": "vitest run --coverage --environment jsdom",
"test:vitest:happy-dom": "vitest run --coverage --environment happy-dom",
"test:jest": "npx --node-options=\"--experimental-vm-modules --no-warnings\" jest --coverage",
"types": "svelte-check",
"types:legacy": "svelte-check --tsconfig tsconfig.legacy.json",
"validate": "npm-run-all test:vitest:* test:jest types build",
"build": "tsc -p tsconfig.build.json && cp src/component-types.d.ts types",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"preview-release": "./scripts/preview-release",
"install:3": "./scripts/install-dependencies 3",
"install:4": "./scripts/install-dependencies 4",
"install:5": "./scripts/install-dependencies 5"
},
"peerDependencies": {
"svelte": "^3 || ^4 || ^5 || ^5.0.0-next.0",
"vite": "*",
"vitest": "*"
},
"peerDependenciesMeta": {
"vite": {
"optional": true
},
"vitest": {
"optional": true
}
},
"dependencies": {
"@testing-library/dom": "^10.0.0"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0 || ^4.0.0",
"@testing-library/jest-dom": "^6.3.0",
"@testing-library/user-event": "^14.5.2",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitest/coverage-v8": "0.x.x || ^1.0.0 || ^2.0.2",
"all-contributors-cli": "^6.26.1",
"doctoc": "^2.2.1",
"esbuild": "*",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.4.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-svelte": "^2.42.0",
"expect-type": "^1.1.0",
"happy-dom": "^16.3.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^25.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.5",
"svelte": "^3 || ^4 || ^5 || ^5.0.0-next.0",
"svelte-check": "^3.0.0 || ^4.0.4",
"svelte-jester": "^5.0.0",
"typescript": "^5.5.3",
"vite": "^4.0.0 || ^5.3.3",
"vitest": "0.x.x || ^1.0.0 || ^2.0.2"
}
}