-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies. Simplified nx configuration, jest configuration, and typescript configurations.
- Loading branch information
Showing
135 changed files
with
733 additions
and
7,153 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ zdeps | |
run | ||
.vscode | ||
.DS_Store | ||
.eslintcache | ||
.yalc | ||
yalc.lock | ||
.pnp.* | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "ES2020", | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleResolution": "node", | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noImplicitOverride": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true | ||
}, | ||
"files": [], | ||
"include": [], | ||
"references": [ | ||
{ | ||
"path": "./tsconfig.lib.json" | ||
}, | ||
{ | ||
"path": "./tsconfig.spec.json" | ||
} | ||
] | ||
"outDir": "../../dist" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ zdeps | |
run | ||
.vscode | ||
.DS_Store | ||
.eslintcache | ||
.yalc | ||
yalc.lock | ||
.pnp.* | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,23 @@ | ||
const {pathsToModuleNameMapper} = require("ts-jest") | ||
// In the following statement, replace `./tsconfig` with the path to your `tsconfig` file | ||
// which contains the path mapping (ie the `compilerOptions.paths` option): | ||
const config = require("../../tsconfig.base") | ||
|
||
const moduleNameMapper = pathsToModuleNameMapper(config.compilerOptions.paths, { | ||
prefix: "<rootDir>/../../", | ||
}) | ||
|
||
const esModules = [ | ||
// https://github.com/gravitational/teleport/issues/33810 | ||
const needsToBeTransformed = [ | ||
"bullet", | ||
"@reduxjs/toolkit", | ||
"immer", | ||
"redux", | ||
"lodash-es", | ||
"when-clause", | ||
].join("|") | ||
// https://github.com/gravitational/teleport/issues/33810 | ||
|
||
module.exports = { | ||
transform: { | ||
"^.+\\.(t|j)sx?$": ["@swc/jest"], | ||
".+\\.(css|styl|less|sass|scss)$": "jest-css-modules-transform", | ||
}, | ||
transformIgnorePatterns: [`/node_modules/(?!${esModules})`], | ||
setupFiles: ["./src/test/unit/setup/before-env.ts"], | ||
export default { | ||
transform: {"^.+\\.(t|j)sx?$": "@swc/jest"}, | ||
transformIgnorePatterns: [`/node_modules/(?!${needsToBeTransformed})`], | ||
setupFilesAfterEnv: ["./src/test/unit/setup/after-env.ts"], | ||
testEnvironmentOptions: { | ||
testURL: "http://localhost:4567/?name=search&id=test-1", | ||
}, | ||
globalSetup: "./src/test/unit/setup/global.ts", | ||
modulePaths: ["<rootDir>"], | ||
roots: ["./src"], | ||
maxWorkers: 4, | ||
moduleNameMapper, | ||
moduleNameMapper: { | ||
"^src/(.*)$": "<rootDir>/src/$1", | ||
"@brimdata/sample-data": "<rootDir>../../packages/sample-data/index.js", | ||
"@brimdata/zed-js": "<rootDir>../../packages/zed-js/src/index.ts", | ||
"@brimdata/zed-node": "<rootDir>../../packages/zed-node/src/index.ts", | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
Oops, something went wrong.