Skip to content

Commit 16dc98d

Browse files
chore: mock-test loads json rather than importing it
1 parent ed122b0 commit 16dc98d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/mockTests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { execSync } from 'child_process'
2-
import pkg from '../package.json'
2+
import { readFileSync } from 'fs'
3+
4+
const pkg = JSON.parse(readFileSync('./package.json', 'utf8'))
35

46
function getEnv(name: string) {
57
const value = process.env[name]

0 commit comments

Comments
 (0)