chore: update project state and prepare for image support development
Some checks failed
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
Some checks failed
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
- Add comprehensive image test document with various image types - Update project structure with development artifacts - Prepare foundation for image support enhancement phase - Include test files for validating image editing workflows 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
22
node_modules/jest-haste-map/LICENSE
generated
vendored
Normal file
22
node_modules/jest-haste-map/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
Copyright Contributors to the Jest project.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
92
node_modules/jest-haste-map/README.md
generated
vendored
Normal file
92
node_modules/jest-haste-map/README.md
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
# jest-haste-map
|
||||
|
||||
`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects with many files.
|
||||
|
||||
## why jest-haste-map ?
|
||||
|
||||
- **Parallel crawling and analysis:** jest-haste-map crawls the entire project, extracts dependencies, and analyzes files in parallel across worker processes.This can significantly improve the performance of the map building process.
|
||||
- **Cached file system:** jest-haste-map keeps a cache of the file system in memory and on disk. This allows for fast file related operations, such as resolving module imports and checking for changes.
|
||||
- **Minimal work**: jest-haste-map only does the minimal amount of work necessary when files change. (If you are using [watchman](https://facebook.github.io/watchman/) (recommended for large projects), Jest will ask watchman for changed files instead of crawling the file system. This is very fast even if you have tens of thousands of files.)
|
||||
- **File system watching:** jest-haste-map can watch the file system for changes. This is useful for building interactive tools, such as watch mode.
|
||||
|
||||
## Installation
|
||||
|
||||
with npm :
|
||||
|
||||
```bash
|
||||
npm install jest-haste-map --save-dev
|
||||
```
|
||||
|
||||
with yarn :
|
||||
|
||||
```bash
|
||||
yarn add jest-haste-map --dev
|
||||
```
|
||||
|
||||
## usage
|
||||
|
||||
`jest-haste-map` is compatible with both `ES modules` and `CommonJS`
|
||||
|
||||
### simple usage
|
||||
|
||||
```javascript
|
||||
const map = new HasteMap.default({
|
||||
// options
|
||||
});
|
||||
```
|
||||
|
||||
### Example usage (get all files with .js extension in the project)
|
||||
|
||||
```javascript
|
||||
import HasteMap from 'jest-haste-map';
|
||||
import os from 'os';
|
||||
import {dirname} from 'path';
|
||||
import {fileURLToPath} from 'url';
|
||||
|
||||
const root = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const map = new HasteMap.default({
|
||||
id: 'myproject', //Used for caching.
|
||||
extensions: ['js'], // Tells jest-haste-map to only crawl .js files.
|
||||
maxWorkers: os.availableParallelism(), //Parallelizes across all available CPUs.
|
||||
platforms: [], // This is only used for React Native, you can leave it empty.
|
||||
roots: [root], // Can be used to only search a subset of files within `rootDir`
|
||||
retainAllFiles: true,
|
||||
rootDir: root, //The project root.
|
||||
});
|
||||
|
||||
const {hasteFS} = await map.build();
|
||||
|
||||
const files = hasteFS.getAllFiles();
|
||||
|
||||
console.log(files);
|
||||
```
|
||||
|
||||
### options
|
||||
|
||||
| Option | Type | Required | Default Value |
|
||||
| ---------------------- | ------------------- | -------- | ------------- |
|
||||
| cacheDirectory | string | No | `os.tmpdir()` |
|
||||
| computeDependencies | boolean | No | `true` |
|
||||
| computeSha1 | boolean | No | `false` |
|
||||
| console | Console | No | - |
|
||||
| dependencyExtractor | string \| null | No | `null` |
|
||||
| enableSymlinks | boolean | No | `false` |
|
||||
| extensions | Array<string> | Yes | - |
|
||||
| forceNodeFilesystemAPI | boolean | Yes | - |
|
||||
| hasteImplModulePath | string | Yes | - |
|
||||
| hasteMapModulePath | string | Yes | - |
|
||||
| id | string | Yes | - |
|
||||
| ignorePattern | HasteRegExp | No | - |
|
||||
| maxWorkers | number | Yes | - |
|
||||
| mocksPattern | string | No | - |
|
||||
| platforms | Array<string> | Yes | - |
|
||||
| resetCache | boolean | No | - |
|
||||
| retainAllFiles | boolean | Yes | - |
|
||||
| rootDir | string | Yes | - |
|
||||
| roots | Array<string> | Yes | - |
|
||||
| skipPackageJson | boolean | Yes | - |
|
||||
| throwOnModuleCollision | boolean | Yes | - |
|
||||
| useWatchman | boolean | No | `true` |
|
||||
|
||||
For more, you can check [github](https://github.com/jestjs/jest/tree/main/packages/jest-haste-map)
|
||||
49
node_modules/jest-haste-map/package.json
generated
vendored
Normal file
49
node_modules/jest-haste-map/package.json
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "jest-haste-map",
|
||||
"version": "30.2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jestjs/jest.git",
|
||||
"directory": "packages/jest-haste-map"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./build/index.d.ts",
|
||||
"require": "./build/index.js",
|
||||
"import": "./build/index.mjs",
|
||||
"default": "./build/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jest/types": "30.2.0",
|
||||
"@types/node": "*",
|
||||
"anymatch": "^3.1.3",
|
||||
"fb-watchman": "^2.0.2",
|
||||
"graceful-fs": "^4.2.11",
|
||||
"jest-regex-util": "30.0.1",
|
||||
"jest-util": "30.2.0",
|
||||
"jest-worker": "30.2.0",
|
||||
"micromatch": "^4.0.8",
|
||||
"walker": "^1.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fb-watchman": "^2.0.5",
|
||||
"@types/graceful-fs": "^4.1.9",
|
||||
"@types/micromatch": "^4.0.9",
|
||||
"slash": "^3.0.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"fsevents": "^2.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "855864e3f9751366455246790be2bf912d4d0dac"
|
||||
}
|
||||
Reference in New Issue
Block a user