mirror of
https://github.com/quartz-community/graph.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 Graph.tsx - Configure vitest aliases to mock scss and inline script imports - Create proper test mocks and graph.test.ts - Remove unused template files (emitter, filter, transformer) - Fix formatting in util/lang.ts
18 lines
478 B
TypeScript
18 lines
478 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/graph.scss": path.resolve(__dirname, "test/__mocks__/styleMock.ts"),
|
|
"./scripts/graph.inline.ts": path.resolve(__dirname, "test/__mocks__/scriptMock.ts"),
|
|
},
|
|
},
|
|
esbuild: {
|
|
jsx: "automatic",
|
|
jsxImportSource: "preact",
|
|
},
|
|
});
|