expo-module-scripts 3.0.1 → 3.0.3

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/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 3.0.3 — 2022-11-02
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 3.0.2 — 2022-10-30
18
+
19
+ ### 💡 Others
20
+
21
+ - Remove Enzyme plugin - it does not work with React 18. Not considered a breaking change because the Enzyme plugin has never worked with React 18 and so is already broken. ([#19777](https://github.com/expo/expo/pull/19777) by [@brentvatne](https://github.com/brentvatne))
22
+
13
23
  ## 3.0.1 — 2022-10-28
14
24
 
15
25
  _This version does not introduce any user-facing changes._
package/README.md CHANGED
@@ -156,15 +156,7 @@ The Jest preset extends [`jest-expo`](https://github.com/expo/expo/tree/main/pac
156
156
  }
157
157
  ```
158
158
 
159
- **For unit testing component-based modules:**
160
-
161
- ```json
162
- {
163
- "jest": {
164
- "preset": "expo-module-scripts/enzyme"
165
- }
166
- }
167
- ```
159
+ **For unit testing component-based modules** use @testing-library/react and @testing-library/react-native.
168
160
 
169
161
  ### 📝 LICENSE
170
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-module-scripts",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "A private package for various tasks for Expo module packages like compiling and testing",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -37,10 +37,9 @@
37
37
  "find-yarn-workspace-root": "^2.0.0",
38
38
  "glob": "^7.1.7",
39
39
  "jest-expo": "~47.0.0",
40
- "jest-expo-enzyme": "^1.2.3",
41
40
  "jest-watch-typeahead": "0.6.4",
42
41
  "ts-jest": "~26.3.0",
43
42
  "typescript": "^4.3.5"
44
43
  },
45
- "gitHead": "59081bb17e727b10f2a00cd07bb45cd283a6f6a5"
44
+ "gitHead": "1a87dcc55895a9e16e3d4fd0fa78f2244c1d961f"
46
45
  }
@@ -1,16 +0,0 @@
1
- try {
2
- const { withEnzyme } = require('jest-expo-enzyme');
3
- const { withWatchPlugins } = require('jest-expo/config');
4
- const withExpoModuleScripts = require('../createJestPreset');
5
-
6
- module.exports = withWatchPlugins({
7
- projects: [
8
- require('jest-expo/ios/jest-preset'),
9
- require('jest-expo/android/jest-preset'),
10
- require('jest-expo/web/jest-preset'),
11
- ].map(preset => withExpoModuleScripts(withEnzyme(preset))),
12
- });
13
- } catch (error) {
14
- console.error(error);
15
- process.exit(1);
16
- }