Skip to content

Commit 5ca24ac

Browse files
authored
chore: remove enzyme tests (#3848)
* remove checkRenderConsistency / checkReRender tests * port rest of enzyme tests to react-test-renderer * remove the rest of enzyme * Change files * fix tsconfig for jest types * Change files * undo most of changes to framework tsconfig
1 parent f870cd2 commit 5ca24ac

File tree

145 files changed

+945
-2105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+945
-2105
lines changed
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
import * as React from 'react';
22
import { ComponentName } from '../ComponentName';
33
import * as renderer from 'react-test-renderer';
4-
import { checkRenderConsistency, checkReRender } from '@fluentui-react-native/test-tools';
54

65
describe('ComponentName component tests', () => {
76
it('ComponentName default', () => {
87
const tree = renderer.create(<ComponentName>Your component</ComponentName>).toJSON();
98
expect(tree).toMatchSnapshot();
109
});
1110

12-
it('ComponentName simple rendering does not invalidate styling', () => {
13-
checkRenderConsistency(() => <ComponentName>Default ComponentName</ComponentName>, 2);
14-
});
15-
16-
it('ComponentName re-renders correctly', () => {
17-
checkReRender(() => <ComponentName>Render twice</ComponentName>, 2);
18-
});
19-
2011
// Feel free to add more tests here
2112
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "@fluentui-react-native/scripts/tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "lib",
5-
"types": ["node", "jest"]
4+
"outDir": "lib"
65
},
76
"include": ["src"]
87
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "remove enzyme tests",
4+
"packageName": "@fluentui/react-native",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix tsconfig for jest types",
4+
"packageName": "@fluentui-react-native/android-theme",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix tsconfig for jest types",
4+
"packageName": "@fluentui-react-native/apple-theme",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix tsconfig for jest types",
4+
"packageName": "@fluentui-react-native/avatar",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "remove enzyme tests",
4+
"packageName": "@fluentui-react-native/badge",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "remove enzyme tests",
4+
"packageName": "@fluentui-react-native/button",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix tsconfig for jest types",
4+
"packageName": "@fluentui-react-native/callout",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "remove enzyme tests",
4+
"packageName": "@fluentui-react-native/checkbox",
5+
"email": "sanajmi@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

0 commit comments

Comments
 (0)