@stanlemon/webdev 0.1.38 → 0.1.39

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/jest.setup.js CHANGED
@@ -1 +1,5 @@
1
1
  require("@testing-library/jest-dom");
2
+
3
+ const { Crypto } = require("@peculiar/webcrypto");
4
+
5
+ global.crypto = new Crypto();
package/jest.test.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @jest-environment node
2
+ * @jest-environment jsdom
3
3
  */
4
- // This package is already transformed
4
+ // This package is already transformed, and it uses crypto which is not supported in jsdom.
5
5
  import { v1 as uuidv1 } from "uuid";
6
6
 
7
7
  test("jest works", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stanlemon/webdev",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "My typical web development setup, but without all the copy and paste.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -24,6 +24,7 @@
24
24
  "@babel/preset-env": "^7.17.10",
25
25
  "@babel/preset-react": "^7.16.7",
26
26
  "@babel/preset-typescript": "^7.16.7",
27
+ "@peculiar/webcrypto": "^1.3.3",
27
28
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
28
29
  "@stanlemon/eslint-config": "*",
29
30
  "@testing-library/jest-dom": "^5.16.4",