mirror of
https://github.com/quartz-community/search.git
synced 2026-07-22 02:50:25 +00:00
- Update .eslintrc.json to ignore inline scripts and type declarations - Change @ts-ignore to @ts-expect-error in Search.tsx - Configure vitest aliases to mock scss and inline script imports - Create proper test mocks and search.test.ts - Remove template test files (emitter, filter, transformer, helpers) - Fix formatting in search.scss
18 lines
480 B
TypeScript
18 lines
480 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "node",
|
|
include: ["test/**/*.test.ts"],
|
|
reporters: ["default"],
|
|
alias: {
|
|
"./styles/search.scss": path.resolve(__dirname, "test/__mocks__/styleMock.ts"),
|
|
"./scripts/search.inline.ts": path.resolve(__dirname, "test/__mocks__/scriptMock.ts"),
|
|
},
|
|
},
|
|
esbuild: {
|
|
jsx: "automatic",
|
|
jsxImportSource: "preact",
|
|
},
|
|
});
|