Use `vitest` for backend tests: - `bench` script now uses [vitest's `bench`](https://vitest.dev/api/#bench) - e2e test fails with same error happening now with jest:`data-testid` attribute not present. vitest left, jest right <img width="1264" height="603" alt="image" src="https://github.com/user-attachments/assets/56fc43a6-e143-4208-bf14-7e016aae7fa9" />
23 lines
654 B
JSON
23 lines
654 B
JSON
{
|
|
"$schema": "./node_modules/knip/schema.json",
|
|
"workspaces": {
|
|
"apps/backend": {
|
|
"entry": ["api-renamed/*.js", "express.js", "tests/bench/*.bench.js"],
|
|
"ignoreFiles": [
|
|
"_dot_vercel_copy/**/*" // Hopefully by using a npm package this file will be removed
|
|
]
|
|
},
|
|
"apps/frontend": {
|
|
"entry": ["src/wakatime-override.ts"],
|
|
|
|
"ignoreDependencies": [
|
|
// below dependencies are added because backend folder is copied inside frontend folder,
|
|
// so some of his dependencies must be present here
|
|
"github-username-regex",
|
|
"emoji-name-map",
|
|
"word-wrap"
|
|
]
|
|
}
|
|
}
|
|
}
|