File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ export default defineConfig((config) => {
4242 resolve : {
4343 alias :
4444 isTest
45- ? {
46- '#app/utils/cache.server.ts' : path . resolve (
47- 'tests/mocks/cache-server.ts' ,
48- ) ,
49- }
45+ ? [
46+ {
47+ find : / c a c h e \. s e r v e r \. t s $ / ,
48+ replacement : path . resolve ( 'tests/mocks/cache-server.ts' ) ,
49+ } ,
50+ ]
5051 : undefined ,
5152 } ,
5253 sentryConfig,
@@ -70,9 +71,12 @@ export default defineConfig((config) => {
7071 : null ,
7172 ] ,
7273 test : {
73- alias : {
74- '#app/utils/cache.server.ts' : path . resolve ( 'tests/mocks/cache-server.ts' ) ,
75- } ,
74+ alias : [
75+ {
76+ find : / c a c h e \. s e r v e r \. t s $ / ,
77+ replacement : path . resolve ( 'tests/mocks/cache-server.ts' ) ,
78+ } ,
79+ ] ,
7680 include : [ './app/**/*.test.{ts,tsx}' ] ,
7781 setupFiles : [ './tests/setup/setup-test-env.ts' ] ,
7882 globalSetup : [ './tests/setup/global-setup.ts' ] ,
You can’t perform that action at this time.
0 commit comments