mirror of
https://github.com/ever-co/ever-gauzy.git
synced 2026-10-02 01:54:50 +08:00
chore(cspell): declare or reword the words #10324 added
The develop push of #10324 (9a6f8787) failed "Check Spelling and Typos
with cspell" (run 36399734369): 13 issues in 5 files. PRs into develop
run no cspell, so this surfaced only after the merge.
- "Nx's" (4x) and "callables": reworded in the comments.
- "internmap" (a d3 dependency, npm package name): added to .cspell.json.
- "avascript" / "msdt" in the safe-url spec: file-level cspell:ignore,
as the repo does elsewhere; they are the tail of the entity-encoded
"javascript:" payloads and the ms-msdt: scheme the tests feed in.
Comment, dictionary and directive changes only; no code or config
behaviour changes. Local cspell 6.31.3 on the five files: 0 issues
(the pre-fix safe-url spec, as a control: 6 issues).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9a6f878700
commit
5c8d4e1c8c
+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