-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (24 loc) · 942 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
27 lines (24 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { mergeConfig } from 'vite'
import type { UserConfig } from 'vitest'
import { defineConfig } from 'vitest/config'
import viteConfig from './vite.config.ts'
// const customAliasResolver = (
// this: PluginContext,
// source: string,
// importer: string | undefined,
// options: { custom?: CustomPluginOptions; isEntry: boolean },
// ) => {
// console.log(this)
// }
export default mergeConfig(
viteConfig,
defineConfig({
test: {
// setupFiles: ['../config/src/jest/testSetup.js'], // this is causing
// Error: Cannot find module '/Users/kross/projects/tools/node_modules/@alienfast/common/dist/index.cjs'
// ❯ Object.<anonymous> ../../node_modules/@alienfast/logger/dist/index.cjs:1:721
// ❯ Object.<anonymous> ../../node_modules/@alienfast/logger-node/dist/index.cjs:1:660
// ❯ Users/kross/projects/tools/packages/config/src/jest/testSetup.js:53:1
},
}) as UserConfig,
)