Make badge tests run on win32 instead of ios

This commit is contained in:
lyzhan7 2022-10-25 12:01:59 -07:00
Родитель 73c918c0dd
Коммит fe55c0120f
3 изменённых файлов: 16 добавлений и 8 удалений

Просмотреть файл

@ -1,2 +1,2 @@
const { configureReactNativeJest } = require('@fluentui-react-native/scripts');
module.exports = configureReactNativeJest('ios');
module.exports = configureReactNativeJest('win32');

Просмотреть файл

@ -40,6 +40,7 @@
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
"@fluentui-react-native/scripts": "^0.1.1",
"@fluentui-react-native/test-tools": ">=0.1.1 <1.0.0",
"@office-iss/react-native-win32": ">=0.68.0 <0.68.6",
"@types/react-native": "^0.68.0",
"react": "17.0.2",
"react-native": "^0.68.0"

Просмотреть файл

@ -42,10 +42,11 @@ exports[`Badge component tests Badge all props 1`] = `
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
"margin": 0,
@ -84,10 +85,11 @@ exports[`Badge component tests Badge tokens 1`] = `
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
"margin": 0,
@ -163,10 +165,11 @@ exports[`CounterBadge component tests CounterBadge all props 1`] = `
<Text
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
"fontWeight": "400",
@ -206,10 +209,11 @@ exports[`CounterBadge component tests CounterBadge shows 99+ 1`] = `
<Text
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
"fontWeight": "400",
@ -249,10 +253,11 @@ exports[`CounterBadge component tests CounterBadge shows 1000+ 1`] = `
<Text
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
"fontWeight": "400",
@ -293,10 +298,11 @@ exports[`CounterBadge component tests CounterBadge shows zero 1`] = `
<Text
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
"fontWeight": "400",
@ -336,10 +342,11 @@ exports[`CounterBadge component tests CounterBadge tokens 1`] = `
<Text
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"fontFamily": "System",
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
"fontWeight": "400",