reiji-h 1 год назад
Родитель
Сommit
21a0759891

+ 5 - 0
packages/remark-growi-directive/tsconfig.json

@@ -1,6 +1,11 @@
 {
 {
   "$schema": "http://json.schemastore.org/tsconfig",
   "$schema": "http://json.schemastore.org/tsconfig",
   "extends": "../../tsconfig.base.json",
   "extends": "../../tsconfig.base.json",
+  "compilerOptions": {
+    "types": [
+      "vitest/globals"
+    ],
+  },
   "include": [
   "include": [
     "src"
     "src"
   ],
   ],

+ 13 - 0
packages/remark-growi-directive/vitest.config.ts

@@ -0,0 +1,13 @@
+import tsconfigPaths from 'vite-tsconfig-paths';
+import { defineConfig } from 'vitest/config';
+
+export default defineConfig({
+  plugins: [
+    tsconfigPaths(),
+  ],
+  test: {
+    environment: 'node',
+    clearMocks: true,
+    globals: true,
+  },
+});