expo-module-scripts 3.2.0 → 3.3.0
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 +7 -0
- package/bin/expo-module-test +3 -0
- package/jest-preset-plugin.js +4 -1
- package/jest-preset.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 3.3.0 — 2023-11-14
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Remove watchPlugins from sub-projects when using multi-project runner. ([#25302](https://github.com/expo/expo/pull/25302) by [@EvanBacon](https://github.com/EvanBacon))
|
|
18
|
+
- Default to using jest-preset-plugin when running `yarn test plugin` with no `plugin/jest.config.js` file. ([#25302](https://github.com/expo/expo/pull/25302) by [@EvanBacon](https://github.com/EvanBacon))
|
|
19
|
+
|
|
13
20
|
## 3.2.0 — 2023-10-17
|
|
14
21
|
|
|
15
22
|
### 🎉 New features
|
package/bin/expo-module-test
CHANGED
|
@@ -15,6 +15,9 @@ if [ "$1" == "plugin" ]; then
|
|
|
15
15
|
if [[ -f plugin/jest.config.js ]]; then
|
|
16
16
|
args+=("--config")
|
|
17
17
|
args+=("plugin/jest.config.js")
|
|
18
|
+
else
|
|
19
|
+
args+=("--config")
|
|
20
|
+
args+=("$(node --print "require.resolve('expo-module-scripts/jest-preset-plugin.js')")")
|
|
18
21
|
fi
|
|
19
22
|
|
|
20
23
|
# Push the rest of the arguments minus the `plugin` arg
|
package/jest-preset-plugin.js
CHANGED
|
@@ -4,7 +4,10 @@ const nodePreset = {
|
|
|
4
4
|
transform: {
|
|
5
5
|
'^.+\\.[jt]sx?$': ['babel-jest', { configFile: require.resolve('./babel.config.base.js') }],
|
|
6
6
|
},
|
|
7
|
-
watchPlugins: [
|
|
7
|
+
watchPlugins: [
|
|
8
|
+
require.resolve('jest-watch-typeahead/filename'),
|
|
9
|
+
require.resolve('jest-watch-typeahead/testname'),
|
|
10
|
+
],
|
|
8
11
|
};
|
|
9
12
|
|
|
10
13
|
module.exports = nodePreset;
|
package/jest-preset.js
CHANGED
|
@@ -6,5 +6,6 @@ module.exports = withWatchPlugins({
|
|
|
6
6
|
createJestPreset(require('jest-expo/android/jest-preset')),
|
|
7
7
|
createJestPreset(require('jest-expo/web/jest-preset')),
|
|
8
8
|
createJestPreset(require('jest-expo/node/jest-preset')),
|
|
9
|
-
|
|
9
|
+
// Remove sub-watch-plugins from the preset when using multi-project runner.
|
|
10
|
+
].map(({ watchPlugins, ...config }) => config),
|
|
10
11
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-module-scripts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@testing-library/react-hooks": "^7.0.1",
|
|
32
32
|
"@tsconfig/node18": "^18.2.2",
|
|
33
33
|
"@types/jest": "^29.2.1",
|
|
34
|
-
"babel-preset-expo": "~9.
|
|
34
|
+
"babel-preset-expo": "~9.9.0",
|
|
35
35
|
"commander": "^2.19.0",
|
|
36
36
|
"eslint-config-universe": "^12.0.0",
|
|
37
37
|
"find-yarn-workspace-root": "^2.0.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"ts-jest": "~29.0.4",
|
|
42
42
|
"typescript": "^5.1.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
|
|
45
45
|
}
|