Skip to content

Commit

Permalink
[router] enable testing on all platforms (#27407)
Browse files Browse the repository at this point in the history
# Why

Update `jest.config.js` to enable tests on all platforms

# Test Plan

<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
  • Loading branch information
marklawlor and expo-bot committed Mar 13, 2024
1 parent f618a31 commit 7b34eb7
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/expo-router/CHANGELOG.md
Expand Up @@ -28,6 +28,8 @@

### 💡 Others

- Enable Jest tests for all platforms ([#27407](https://github.com/expo/expo/pull/27407) by [@marklawlor](https://github.com/marklawlor))

## 3.4.8 - 2024-02-29

### 🎉 New features
Expand Down
8 changes: 4 additions & 4 deletions packages/expo-router/jest.config.js
@@ -1,8 +1,8 @@
const {
getWebPreset,
// getNodePreset,
getNodePreset,
getIOSPreset,
// getAndroidPreset,
getAndroidPreset,
} = require('jest-expo/config/getPlatformPreset');
const { withWatchPlugins } = require('jest-expo/config/withWatchPlugins');

Expand All @@ -19,8 +19,8 @@ module.exports = withWatchPlugins({
projects: [
// Create a new project for each platform.
getWebPreset(),
// getNodePreset(),
getNodePreset(),
getIOSPreset(),
// getAndroidPreset(),
getAndroidPreset(),
].map(withDefaults),
});
1 change: 1 addition & 0 deletions packages/expo-router/src/link/__tests__/Link.test.web.tsx
@@ -1,3 +1,4 @@
/** @jest-environment jsdom */
import { render } from '@testing-library/react';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
Expand Down

0 comments on commit 7b34eb7

Please sign in to comment.