chore: update all dependencies
I spotted an experimental vitest addon and configured most parts of it. However due to given peer dependency in that addon I cannot install it. Therefore everything was commented for now. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
parent
073bfaa2c9
commit
4984938f40
5 changed files with 456 additions and 2373 deletions
|
@ -24,6 +24,7 @@ const config: StorybookConfig = {
|
||||||
'@storybook/addon-links',
|
'@storybook/addon-links',
|
||||||
'@storybook/addon-interactions',
|
'@storybook/addon-interactions',
|
||||||
'@storybook/addon-toolbar',
|
'@storybook/addon-toolbar',
|
||||||
|
//'@storybook/experimental-addon-vitest',
|
||||||
'@storybook/test'
|
'@storybook/test'
|
||||||
],
|
],
|
||||||
core: {
|
core: {
|
||||||
|
|
2736
package-lock.json
generated
2736
package-lock.json
generated
File diff suppressed because it is too large
Load diff
52
package.json
52
package.json
|
@ -24,59 +24,59 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
||||||
"@playwright/test": "1.45.3",
|
"@playwright/test": "1.46.1",
|
||||||
"@skeletonlabs/skeleton": "2.10.2",
|
"@skeletonlabs/skeleton": "2.10.2",
|
||||||
"@skeletonlabs/tw-plugin": "0.4.0",
|
"@skeletonlabs/tw-plugin": "0.4.0",
|
||||||
"@storybook/addon-a11y": "8.2.6",
|
"@storybook/addon-a11y": "8.2.9",
|
||||||
"@storybook/addon-coverage": "1.0.4",
|
"@storybook/addon-coverage": "1.0.4",
|
||||||
"@storybook/addon-essentials": "8.2.6",
|
"@storybook/addon-essentials": "8.2.9",
|
||||||
"@storybook/addon-interactions": "8.2.6",
|
"@storybook/addon-interactions": "8.2.9",
|
||||||
"@storybook/addon-links": "8.2.6",
|
"@storybook/addon-links": "8.2.9",
|
||||||
"@storybook/blocks": "8.2.6",
|
"@storybook/blocks": "8.2.9",
|
||||||
"@storybook/builder-vite": "8.2.6",
|
"@storybook/builder-vite": "8.2.9",
|
||||||
"@storybook/svelte": "8.2.6",
|
"@storybook/svelte": "8.2.9",
|
||||||
"@storybook/sveltekit": "8.2.6",
|
"@storybook/sveltekit": "8.2.9",
|
||||||
"@storybook/test": "8.2.6",
|
"@storybook/test": "8.2.9",
|
||||||
"@sveltejs/adapter-node": "5.2.0",
|
"@sveltejs/adapter-node": "5.2.2",
|
||||||
"@sveltejs/kit": "2.5.18",
|
"@sveltejs/kit": "2.5.24",
|
||||||
"@sveltejs/vite-plugin-svelte": "3.1.1",
|
"@sveltejs/vite-plugin-svelte": "3.1.1",
|
||||||
"@tailwindcss/forms": "0.5.7",
|
"@tailwindcss/forms": "0.5.7",
|
||||||
"@tailwindcss/typography": "0.5.13",
|
"@tailwindcss/typography": "0.5.14",
|
||||||
"@tauri-apps/cli": "1.6.0",
|
"@tauri-apps/cli": "1.6.0",
|
||||||
"@testing-library/jest-dom": "6.4.8",
|
"@testing-library/jest-dom": "6.4.8",
|
||||||
"@testing-library/svelte": "5.2.1",
|
"@testing-library/svelte": "5.2.1",
|
||||||
"@types/node": "22.0.0",
|
"@types/node": "22.4.1",
|
||||||
"@typescript-eslint/eslint-plugin": "7.18.0",
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
||||||
"@typescript-eslint/parser": "7.18.0",
|
"@typescript-eslint/parser": "7.18.0",
|
||||||
"@vitest/coverage-istanbul": "2.0.4",
|
"@vitest/coverage-istanbul": "2.0.5",
|
||||||
"autoprefixer": "10.4.19",
|
"autoprefixer": "10.4.20",
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.56.0",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-storybook": "0.8.0",
|
"eslint-plugin-storybook": "0.8.0",
|
||||||
"eslint-plugin-svelte": "2.43.0",
|
"eslint-plugin-svelte": "2.43.0",
|
||||||
"gh-pages": "6.1.1",
|
"gh-pages": "6.1.1",
|
||||||
"jsdom": "24.1.1",
|
"jsdom": "24.1.1",
|
||||||
"postcss": "8.4.40",
|
"postcss": "8.4.41",
|
||||||
"prettier": "3.3.3",
|
"prettier": "3.3.3",
|
||||||
"prettier-plugin-svelte": "3.2.6",
|
"prettier-plugin-svelte": "3.2.6",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1",
|
"react-dom": "18.3.1",
|
||||||
"storybook": "8.2.6",
|
"storybook": "8.2.9",
|
||||||
"svelte": "4.2.18",
|
"svelte": "4.2.18",
|
||||||
"svelte-check": "3.8.4",
|
"svelte-check": "3.8.5",
|
||||||
"svelte-i18n": "4.0.0",
|
"svelte-i18n": "4.0.0",
|
||||||
"svelte-octicons": "18.9.0",
|
"svelte-octicons": "18.9.0",
|
||||||
"tailwindcss": "3.4.7",
|
"tailwindcss": "3.4.10",
|
||||||
"tslib": "2.6.3",
|
"tslib": "2.6.3",
|
||||||
"typescript": "5.5.4",
|
"typescript": "5.5.4",
|
||||||
"vite": "5.3.5",
|
"vite": "5.4.1",
|
||||||
"vitest": "2.0.4"
|
"vitest": "2.0.5"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@floating-ui/dom": "1.6.8",
|
"@floating-ui/dom": "1.6.10",
|
||||||
"@fontsource/spline-sans-mono": "5.0.20",
|
"@fontsource/spline-sans-mono": "5.0.21",
|
||||||
"axios": "1.7.2",
|
"axios": "1.7.4",
|
||||||
"cheerio": "1.0.0-rc.12"
|
"cheerio": "1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,18 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { beforeAll, vi } from 'vitest';
|
||||||
|
import { render as testingLibraryRender } from '@testing-library/svelte';
|
||||||
|
import { setProjectAnnotations } from '@storybook/svelte';
|
||||||
|
|
||||||
|
const annotations = setProjectAnnotations([
|
||||||
|
// You MUST provide this option to use portable stories with vitest
|
||||||
|
{ testingLibraryRender }
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Run Storybook's beforeAll hook
|
||||||
|
beforeAll(annotations.beforeAll);
|
||||||
|
|
||||||
Object.defineProperty(window, 'matchMedia', {
|
Object.defineProperty(window, 'matchMedia', {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: vi.fn().mockImplementation((query) => ({
|
value: vi.fn().mockImplementation((query) => ({
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
|
|
||||||
import { resolve } from 'node:path';
|
import { resolve } from 'node:path';
|
||||||
|
|
||||||
|
import { storybookTest } from '@storybook/experimental-addon-vitest/plugin';
|
||||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||||
import { svelteTesting } from '@testing-library/svelte/vite';
|
// Not ready for prime time
|
||||||
|
//import { svelteTesting } from '@testing-library/svelte/vite';
|
||||||
import { defineConfig } from 'vitest/config';
|
import { defineConfig } from 'vitest/config';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
@ -23,13 +25,33 @@ export default defineConfig({
|
||||||
$lib: resolve('./src/lib')
|
$lib: resolve('./src/lib')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [svelte({ hot: !process.env.VITEST }), svelteTesting()],
|
plugins: [
|
||||||
|
svelte({ hot: !process.env.VITEST }),
|
||||||
|
svelteTesting()
|
||||||
|
/*
|
||||||
|
storybookTest({
|
||||||
|
storybookScript: 'npm run storybook --ci'
|
||||||
|
})
|
||||||
|
*/
|
||||||
|
],
|
||||||
test: {
|
test: {
|
||||||
|
/*
|
||||||
|
browser: {
|
||||||
|
enabled: true,
|
||||||
|
provider: 'playwright',
|
||||||
|
name: 'chromium',
|
||||||
|
headless: true, // or false, if you want to see it in action in the browser
|
||||||
|
screenshotFailures: false,
|
||||||
|
},
|
||||||
|
*/
|
||||||
coverage: {
|
coverage: {
|
||||||
include: ['src'],
|
include: ['src'],
|
||||||
provider: 'istanbul'
|
provider: 'istanbul'
|
||||||
},
|
},
|
||||||
include: ['tests/**/*.test.ts'],
|
include: [
|
||||||
|
//'stories/**/*.stories.ts',
|
||||||
|
'tests/**/*.test.ts'
|
||||||
|
],
|
||||||
environment: 'jsdom',
|
environment: 'jsdom',
|
||||||
globals: true,
|
globals: true,
|
||||||
setupFiles: [resolve(__dirname, 'tests/components/setup.ts')]
|
setupFiles: [resolve(__dirname, 'tests/components/setup.ts')]
|
||||||
|
|
Loading…
Reference in a new issue