We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad24b74 commit 3ed92cfCopy full SHA for 3ed92cf
packages/integrations/storage-vectors-js/jest.config.ts
@@ -1,8 +1,13 @@
1
/* eslint-disable */
2
import { readFileSync } from 'fs'
3
+import { fileURLToPath } from 'url'
4
+import { dirname, join } from 'path'
5
+
6
+const __filename = fileURLToPath(import.meta.url)
7
+const __dirname = dirname(__filename)
8
9
// Reading the SWC compilation config for the spec files
-const swcJestConfig = JSON.parse(readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8'))
10
+const swcJestConfig = JSON.parse(readFileSync(join(__dirname, '.spec.swcrc'), 'utf-8'))
11
12
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
13
swcJestConfig.swcrc = false
0 commit comments