@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.
@@ -0,0 +1,4 @@
1
+
2
+ > @autometa/jest-transformer@0.1.68 lint:fix /Users/ben.aherne/Documents/GitHub/autometa/packages/jest-transformer
3
+ > eslint . --fix "--max-warnings=0"
4
+
File without changes
File without changes
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @autometa/jest-transformer
2
2
 
3
+ ## 0.1.89
4
+
5
+ ### Patch Changes
6
+
7
+ - @autometa/runner@0.4.17
8
+
9
+ ## 0.1.88
10
+
11
+ ### Patch Changes
12
+
13
+ - @autometa/runner@0.4.16
14
+
3
15
  ## 0.1.87
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # Introduction
2
2
 
3
- There's nothing here yet
3
+ There's nothing here yet
@@ -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, filePath: string, jestConfig: Config.ProjectConfig) => {\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,CAAC,MAAc,UAAkB,eAAqC;AAC7E,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":[]}
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, filePath: string, jestConfig: Config.ProjectConfig) => {\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,CAAC,MAAc,UAAkB,eAAqC;AAC7E,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"]}
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.87",
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": "^0.31.0",
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": "0.34.6"
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",