Skip to content

Commit 763a598

Browse files
committed
Prevent Prettier from wrapping lines in vitest.config.ts
1 parent bc441a5 commit 763a598

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/toolkit/vitest.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'vitest/config'
22

3-
import path from 'path'
4-
import { fileURLToPath } from 'url'
3+
import path from 'node:path'
4+
import { fileURLToPath } from 'node:url'
55

66
// No __dirname under Node ESM
77
const __filename = fileURLToPath(import.meta.url)
@@ -15,7 +15,8 @@ export default defineConfig({
1515
setupFiles: ['./vitest.setup.js'],
1616
include: ['./src/**/*.(spec|test).[jt]s?(x)'],
1717
alias: {
18-
'@reduxjs/toolkit/query/react': path.join(__dirname, './src/query/react/index.ts'), // @remap-prod-remove-line
18+
// prettier-ignore
19+
'@reduxjs/toolkit/query/react': path.join(__dirname,'./src/query/react/index.ts'), // @remap-prod-remove-line
1920
'@reduxjs/toolkit/query': path.join(__dirname, './src/query/index.ts'), // @remap-prod-remove-line
2021
'@reduxjs/toolkit/react': path.join(__dirname, './src/index.ts'), // @remap-prod-remove-line
2122
'@reduxjs/toolkit': path.join(__dirname, './src/index.ts'), // @remap-prod-remove-line

0 commit comments

Comments
 (0)