Skip to content

Commit 3ed92cf

Browse files
committed
fix(repo): small syntax update
1 parent ad24b74 commit 3ed92cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/integrations/storage-vectors-js/jest.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
/* eslint-disable */
22
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)
38

49
// Reading the SWC compilation config for the spec files
5-
const swcJestConfig = JSON.parse(readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8'))
10+
const swcJestConfig = JSON.parse(readFileSync(join(__dirname, '.spec.swcrc'), 'utf-8'))
611

712
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
813
swcJestConfig.swcrc = false

0 commit comments

Comments
 (0)