mirror of
https://github.com/ever-co/ever-gauzy.git
synced 2026-10-02 01:54:50 +08:00
Merge pull request #10325 from ever-co/fix/cspell-unit-test-harness
chore(cspell): declare or reword the words #10324 added
This commit is contained in:
+2
-1
@@ -1260,7 +1260,8 @@
|
||||
"toplevel",
|
||||
"reimplementation",
|
||||
"strategized",
|
||||
"unwindowed"
|
||||
"unwindowed",
|
||||
"internmap"
|
||||
],
|
||||
"useGitignore": true,
|
||||
"ignorePaths": [
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// Matches ui-core / docs-ui / videos-ui. The app default-imports CommonJS packages (e.g.
|
||||
// `import AnnotationPlugin from 'chartjs-plugin-annotation'` in ui-core's line chart), which the
|
||||
// bundler resolves; without interop ts-jest reads an undefined `.default` and Chart.register threw.
|
||||
// The namespace-imported callables (moment, randomcolor) are covered by the root jest.interop.js.
|
||||
// The namespace-imported functions (moment, randomcolor) are covered by the root jest.interop.js.
|
||||
"isolatedModules": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ const transformIgnorePatterns = [
|
||||
module.exports = {
|
||||
...nxPreset,
|
||||
transformIgnorePatterns,
|
||||
// Nx's resolver plus one rule: a Jest project sees ONE copy of `@angular/*`. See the file.
|
||||
// The Nx resolver plus one rule: a Jest project sees ONE copy of `@angular/*`. See the file.
|
||||
resolver: require.resolve('./jest.resolver.js'),
|
||||
// ngx-daterangepicker-material (ui-core's date-range selector) imports `dayjs/esm` and its plugins
|
||||
// from an `.mjs` bundle. Transforming that ESM tree is not enough: an `.mjs` importer gets Node's
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Jest resolver for the whole workspace (wired in `jest.preset.js`): Nx's resolver, plus ONE rule —
|
||||
* Jest resolver for the whole workspace (wired in `jest.preset.js`): the Nx resolver, plus ONE rule —
|
||||
* every `@angular/*` import inside a Jest project resolves to the SAME copy of Angular.
|
||||
*
|
||||
* Why: the root `package.json` sets `workspaces.nohoist: ["**\/@angular*\/**"]`, so every workspace
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* The fix resolves `@angular/*` from the Jest project's `rootDir` whoever asks: the project's own
|
||||
* copy when it has one (the one it builds against), otherwise the next copy up the tree (the root
|
||||
* one). One project, one Angular. Anything else goes through Nx's resolver unchanged.
|
||||
* one). One project, one Angular. Anything else goes through the Nx resolver unchanged.
|
||||
*/
|
||||
const nxResolver = require('@nx/jest/plugins/resolver');
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// cspell:ignore avascript msdt - the tail of the entity-encoded "javascript:" payloads below, and the ms-msdt: scheme
|
||||
/**
|
||||
* The URL-scheme allowlist itself.
|
||||
*
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
// Same mappings as tsconfig.lib.json. tsconfig.json points `@gauzy/ui-config` at the BUILT
|
||||
// `dist/packages/ui-config`, which a test run does not have, and Nx's Jest resolver falls back
|
||||
// `dist/packages/ui-config`, which a test run does not have, and the Nx Jest resolver falls back
|
||||
// to these paths for workspace packages — so 16 ui-core suites failed with "Cannot find module
|
||||
// '@gauzy/ui-config'" before a single test ran.
|
||||
"baseUrl": "../..",
|
||||
|
||||
Reference in New Issue
Block a user