@autometa/jest-transformer 0.1.87 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-lint$colon$fix.log +4 -0
- package/.turbo/turbo-prettify.log +0 -0
- package/.turbo/turbo-test.log +0 -0
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/tsup.config.ts +1 -1
|
File without changes
|
|
File without changes
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import crypto from \"crypto\";\n\nimport { transform } from \"@babel/core\";\nimport type { Config } from \"@jest/types\";\n// import jestPreset from \"babel-preset-jest\";\n\nexport let canInstrument: false;\nexport const getCacheKey = (\n fileData: crypto.BinaryLike,\n filename: crypto.BinaryLike,\n _configString: crypto.BinaryLike,\n instrument: { instrument?: crypto.BinaryLike }\n) =>\n crypto\n .createHash(\"md5\")\n .update(\"\\0\", \"utf8\")\n .update(fileData)\n .update(\"\\0\", \"utf8\")\n .update(filename)\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(instrument ? \"instrument\" : \"\")\n .digest(\"hex\");\n\nexport default {\n getCacheKey,\n process: (_src: string
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import crypto from \"crypto\";\n\nimport { transform } from \"@babel/core\";\nimport type { Config } from \"@jest/types\";\n// import jestPreset from \"babel-preset-jest\";\n\nexport let canInstrument: false;\nexport const getCacheKey = (\n fileData: crypto.BinaryLike,\n filename: crypto.BinaryLike,\n _configString: crypto.BinaryLike,\n instrument: { instrument?: crypto.BinaryLike }\n) =>\n crypto\n .createHash(\"md5\")\n .update(\"\\0\", \"utf8\")\n .update(fileData)\n .update(\"\\0\", \"utf8\")\n .update(filename)\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(instrument ? \"instrument\" : \"\")\n .digest(\"hex\");\n\nexport default {\n getCacheKey,\n process: (\n _src: string,\n filePath: string,\n jestConfig: Config.ProjectConfig\n ) => {\n const windowsFix = filePath.replace(/\\\\/g, \"/\");\n const testFile = `\nconst { Feature } = require('@autometa/runner'); \nFeature('${windowsFix}')\n`;\n\n const featureFile = transform(testFile, {\n filename: windowsFix,\n root: jestConfig.cwd,\n });\n\n return featureFile;\n },\n};\n"],"mappings":";AAAA,OAAO,YAAY;AAEnB,SAAS,iBAAiB;AAInB,IAAI;AACJ,IAAM,cAAc,CACzB,UACA,UACA,eACA,eAEA,OACG,WAAW,KAAK,EAChB,OAAO,MAAM,MAAM,EACnB,OAAO,QAAQ,EACf,OAAO,MAAM,MAAM,EACnB,OAAO,QAAQ,EACf,OAAO,MAAM,MAAM,EACnB,OAAO,MAAM,MAAM,EACnB,OAAO,MAAM,MAAM,EACnB,OAAO,aAAa,eAAe,EAAE,EACrC,OAAO,KAAK;AAEjB,IAAO,cAAQ;AAAA,EACb;AAAA,EACA,SAAS,CACP,MACA,UACA,eACG;AACH,UAAM,aAAa,SAAS,QAAQ,OAAO,GAAG;AAC9C,UAAM,WAAW;AAAA;AAAA,WAEV,UAAU;AAAA;AAGjB,UAAM,cAAc,UAAU,UAAU;AAAA,MACtC,UAAU;AAAA,MACV,MAAM,WAAW;AAAA,IACnB,CAAC;AAED,WAAO;AAAA,EACT;AACF;","names":[]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import crypto from \"crypto\";\n\nimport { transform } from \"@babel/core\";\nimport type { Config } from \"@jest/types\";\n// import jestPreset from \"babel-preset-jest\";\n\nexport let canInstrument: false;\nexport const getCacheKey = (\n fileData: crypto.BinaryLike,\n filename: crypto.BinaryLike,\n _configString: crypto.BinaryLike,\n instrument: { instrument?: crypto.BinaryLike }\n) =>\n crypto\n .createHash(\"md5\")\n .update(\"\\0\", \"utf8\")\n .update(fileData)\n .update(\"\\0\", \"utf8\")\n .update(filename)\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(instrument ? \"instrument\" : \"\")\n .digest(\"hex\");\n\nexport default {\n getCacheKey,\n process: (_src: string
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import crypto from \"crypto\";\n\nimport { transform } from \"@babel/core\";\nimport type { Config } from \"@jest/types\";\n// import jestPreset from \"babel-preset-jest\";\n\nexport let canInstrument: false;\nexport const getCacheKey = (\n fileData: crypto.BinaryLike,\n filename: crypto.BinaryLike,\n _configString: crypto.BinaryLike,\n instrument: { instrument?: crypto.BinaryLike }\n) =>\n crypto\n .createHash(\"md5\")\n .update(\"\\0\", \"utf8\")\n .update(fileData)\n .update(\"\\0\", \"utf8\")\n .update(filename)\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(\"\\0\", \"utf8\")\n .update(instrument ? \"instrument\" : \"\")\n .digest(\"hex\");\n\nexport default {\n getCacheKey,\n process: (\n _src: string,\n filePath: string,\n jestConfig: Config.ProjectConfig\n ) => {\n const windowsFix = filePath.replace(/\\\\/g, \"/\");\n const testFile = `\nconst { Feature } = require('@autometa/runner'); \nFeature('${windowsFix}')\n`;\n\n const featureFile = transform(testFile, {\n filename: windowsFix,\n root: jestConfig.cwd,\n });\n\n return featureFile;\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AAEnB,kBAA0B;AAInB,IAAI;AACJ,IAAM,cAAc,CACzB,UACA,UACA,eACA,eAEA,cAAAA,QACG,WAAW,KAAK,EAChB,OAAO,MAAM,MAAM,EACnB,OAAO,QAAQ,EACf,OAAO,MAAM,MAAM,EACnB,OAAO,QAAQ,EACf,OAAO,MAAM,MAAM,EACnB,OAAO,MAAM,MAAM,EACnB,OAAO,MAAM,MAAM,EACnB,OAAO,aAAa,eAAe,EAAE,EACrC,OAAO,KAAK;AAEjB,IAAO,cAAQ;AAAA,EACb;AAAA,EACA,SAAS,CACP,MACA,UACA,eACG;AACH,UAAM,aAAa,SAAS,QAAQ,OAAO,GAAG;AAC9C,UAAM,WAAW;AAAA;AAAA,WAEV,UAAU;AAAA;AAGjB,UAAM,kBAAc,uBAAU,UAAU;AAAA,MACtC,UAAU;AAAA,MACV,MAAM,WAAW;AAAA,IACnB,CAAC;AAED,WAAO;AAAA,EACT;AACF;","names":["crypto"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autometa/jest-transformer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.89",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,23 +18,24 @@
|
|
|
18
18
|
"@types/uuid": "^9.0.5",
|
|
19
19
|
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
20
20
|
"@typescript-eslint/parser": "^5.54.1",
|
|
21
|
-
"@vitest/coverage-istanbul": "^
|
|
21
|
+
"@vitest/coverage-istanbul": "^1.4.0",
|
|
22
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
22
23
|
"eslint": "^8.37.0",
|
|
23
|
-
"eslint-config-custom": "0.6.0",
|
|
24
24
|
"eslint-config-prettier": "^8.3.0",
|
|
25
25
|
"istanbul": "^0.4.5",
|
|
26
26
|
"rimraf": "^4.1.2",
|
|
27
|
-
"tsconfig": " *",
|
|
28
27
|
"tsup": "^7.2.0",
|
|
29
28
|
"typescript": "^4.9.5",
|
|
30
|
-
"vitest": "
|
|
29
|
+
"vitest": "1.4.0",
|
|
30
|
+
"eslint-config-custom": "0.6.0",
|
|
31
|
+
"tsconfig": "0.7.0"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@autometa/runner": "^0.4.15",
|
|
34
34
|
"@babel/core": "^7.21.4",
|
|
35
35
|
"@jest/types": "^29.4.3",
|
|
36
36
|
"@types/babel__core": "^7.20.0",
|
|
37
|
-
"babel-preset-jest": "^29.5.0"
|
|
37
|
+
"babel-preset-jest": "^29.5.0",
|
|
38
|
+
"@autometa/runner": "^0.4.17"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
41
|
"test": "vitest run --passWithNoTests",
|
|
@@ -44,6 +45,5 @@
|
|
|
44
45
|
"clean": "rimraf dist",
|
|
45
46
|
"build": "tsup",
|
|
46
47
|
"build:watch": "tsup --watch"
|
|
47
|
-
}
|
|
48
|
-
"readme": "# Introduction\n\nThere's nothing here yet"
|
|
48
|
+
}
|
|
49
49
|
}
|
package/tsup.config.ts
CHANGED
|
@@ -4,7 +4,7 @@ export default defineConfig({
|
|
|
4
4
|
clean: true, // clean up the dist folder
|
|
5
5
|
format: ["cjs", "esm"], // generate cjs and esm files
|
|
6
6
|
dts: true,
|
|
7
|
-
sourcemap:true, // generate sourcemaps
|
|
7
|
+
sourcemap: true, // generate sourcemaps
|
|
8
8
|
skipNodeModulesBundle: true,
|
|
9
9
|
entryPoints: ["src/index.ts"],
|
|
10
10
|
target: "es2020",
|