Skip to content

Commit

Permalink
Replacing jest-yaml-transformer with yaml-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Mar 25, 2024
1 parent 7718bd2 commit 1c00312
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 48 deletions.
2 changes: 1 addition & 1 deletion __tests__/jest-yaml-transformer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const transformer = require("jest-transform-yaml").default
const transformer = require("yaml-jest").default

const newTransformer = {
...transformer,
Expand Down
59 changes: 28 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"html-webpack-plugin": "^5.5.0",
"jest": "29.0.3",
"jest-environment-jsdom": "^29.1.1",
"jest-transform-yaml": "1.1.2",
"js-sha256": "^0.9.0",
"mini-css-extract-plugin": "2.6.1",
"parse5-htmlparser2-tree-adapter": "7.0.0",
Expand All @@ -89,7 +88,8 @@
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.11.1",
"webpack-strip": "0.1.0",
"yaml-loader": "0.6.0"
"yaml-loader": "0.6.0",
"yaml-jest": "1.2.0"
},
"scripts": {
"test": "jest",
Expand Down
21 changes: 7 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5026,13 +5026,6 @@ jest-snapshot@^29.7.0:
pretty-format "^29.7.0"
semver "^7.5.3"

[email protected]:
version "1.1.2"
resolved "https://registry.npmjs.org/jest-transform-yaml/-/jest-transform-yaml-1.1.2.tgz"
integrity sha512-D/Z47HaB02pI3lIRt1F9io2/D/twB+7vLxBVo+P2HgeiETCtLtEk6DZdEoItfi6KDqVJIuUzb830hOsiY/NFiw==
dependencies:
js-yaml "4.1.0"

jest-util@^28.1.3:
version "28.1.3"
resolved "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz"
Expand Down Expand Up @@ -5151,13 +5144,6 @@ js-yaml@^4.1.0:
dependencies:
argparse "^2.0.1"

[email protected]:
version "4.1.0"
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
dependencies:
argparse "^2.0.1"

jsbn@~0.1.0:
version "0.1.1"
resolved "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz"
Expand Down Expand Up @@ -7696,6 +7682,13 @@ yallist@^4.0.0:
resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

[email protected]:
version "1.2.0"
resolved "https://registry.npmjs.org/yaml-jest/-/yaml-jest-1.2.0.tgz"
integrity sha512-rrUNn3ovs5J8td7i3k6rJfh3leBydnM+3YqKJcVyTFRiSiEAdKMy7uhqBxJfsJ+w1le5AGCkMTldNEMY8oqbPg==
dependencies:
js-yaml "^4.1.0"

[email protected]:
version "0.6.0"
resolved "https://registry.npmjs.org/yaml-loader/-/yaml-loader-0.6.0.tgz"
Expand Down

0 comments on commit 1c00312

Please sign in to comment.