mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Currently Ava is used to unit test the api/node project. Vitest is already used elsewhere in the monorepo, integrates well with Vite, is fast and automatically handles tests written in Typescript. Replacing Ava would simplify how Typescript tests are performed. This PR introduces Vitest to the project, sets it up to match Ava (isolated process for each test) and ports just the window.spec.mts file. Later PR's will port the rest.
73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
{
|
|
"name": "slint-ui",
|
|
"version": "1.15.0",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"homepage": "https://github.com/slint-ui/slint",
|
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/slint-ui/slint"
|
|
},
|
|
"keywords": [
|
|
"GUI",
|
|
"UI",
|
|
"native",
|
|
"node",
|
|
"Slint",
|
|
"desktop",
|
|
"embedded"
|
|
],
|
|
"description": "Slint is a declarative GUI toolkit to build native user interfaces for desktop and embedded applications.",
|
|
"devDependencies": {
|
|
"@ava/typescript": "6.0.0",
|
|
"@biomejs/biome": "catalog:",
|
|
"@types/capture-console": "1.0.5",
|
|
"@types/node": "catalog:",
|
|
"ava": "6.4.1",
|
|
"capture-console": "1.0.2",
|
|
"jimp": "1.6.0",
|
|
"typedoc": "0.28.14",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
},
|
|
"engines": {
|
|
"node": ">= 10"
|
|
},
|
|
"scripts": {
|
|
"artifacts": "napi artifacts",
|
|
"compile": "tsc --build",
|
|
"build": "napi build --platform --release --js rust-module.cjs --dts rust-module.d.cts -c binaries.json",
|
|
"build:debug": "napi build --platform --js rust-module.cjs --dts rust-module.d.cts -c binaries.json && pnpm compile",
|
|
"build:testing": "napi build --platform --js rust-module.cjs --dts rust-module.d.cts -c binaries.json --features testing && pnpm compile",
|
|
"install": "node build-on-demand.mjs",
|
|
"docs": "pnpm build && typedoc --hideGenerator --readme cover.md typescript/index.ts && cargo about generate thirdparty.hbs -o docs/thirdparty.html",
|
|
"docs:debug": "pnpm build:debug && typedoc --hideGenerator --readme cover.md typescript/index.ts",
|
|
"check": "biome check",
|
|
"format": "biome format",
|
|
"format:fix": "biome format --write",
|
|
"lint": "biome lint",
|
|
"lint:fix": "biome lint --fix",
|
|
"test": "tsc --build __test__/tsconfig.json && ava && vitest run"
|
|
},
|
|
"ava": {
|
|
"typescript": {
|
|
"rewritePaths": {
|
|
"__test__/": "build/"
|
|
},
|
|
"compile": false,
|
|
"extensions": [
|
|
"mts"
|
|
]
|
|
},
|
|
"timeout": "2m",
|
|
"workerThreads": false,
|
|
"files": [
|
|
"**/*.spec.mts",
|
|
"!**/window.spec.mts"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@napi-rs/cli": "2.18.4"
|
|
}
|
|
}
|