diff --git a/src/__tests__/lockfile-version.test.ts b/src/__tests__/lockfile-version.test.ts new file mode 100644 index 00000000000..b41e55fd96b --- /dev/null +++ b/src/__tests__/lockfile-version.test.ts @@ -0,0 +1,10 @@ +import lockFile from '../../package-lock.json' +import docsLockFile from '../../docs/package-lock.json' + +test('root: lockfileVersion should be 2', async () => { + expect(lockFile.lockfileVersion).toEqual(2) +}) + +test('docs: lockfileVersion should be 2', async () => { + expect(docsLockFile.lockfileVersion).toEqual(2) +}) diff --git a/tsconfig.json b/tsconfig.json index 7bb26edce02..d38ad0424d8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, "typeRoots": ["./node_modules/@types", "./@types"] }, "include": ["@types/**/*.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.tsx", "script/**/*.ts"]