Skip to content

Commit 6a2064f

Browse files
authored
chore: enable test-rit targets in v9 projects for react major versions integration tests (microsoft#35177)
1 parent 11701a6 commit 6a2064f

File tree

6 files changed

+51
-0
lines changed

6 files changed

+51
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "chore: override dependsOn for test-rit targets to have v8 libs build before run",
4+
"packageName": "@fluentui/react-migration-v8-v9",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}

nx.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@
143143
},
144144
"verifyPackaging": {
145145
"include": ["react-text", "react-components"]
146+
},
147+
"reactIntegrationTesting": {
148+
"targetName": "test-rit",
149+
"reactVersions": ["17", "19"],
150+
"exclude": [
151+
"react-theme-sass",
152+
"babel-preset-global-context",
153+
"eslint-plugin-react-components",
154+
"react-migration-v0-v9"
155+
]
146156
}
147157
},
148158
"include": [

packages/react-components/react-migration-v8-v9/library/project.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@
1313
"projects": ["react", "react-hooks", "fluent2-theme"]
1414
}
1515
]
16+
},
17+
"test-rit--17--test": {
18+
"dependsOn": [
19+
"test-rit--17--prepare",
20+
{
21+
"target": "build",
22+
"projects": ["react", "react-hooks", "fluent2-theme"]
23+
}
24+
]
25+
},
26+
"test-rit--19--test": {
27+
"dependsOn": [
28+
"test-rit--19--prepare",
29+
{
30+
"target": "build",
31+
"projects": ["react", "react-hooks", "fluent2-theme"]
32+
}
33+
]
1634
}
1735
}
1836
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// @ts-check
2+
3+
/** @type {import('@fluentui/react-integration-tester').Config} */
4+
const config = {
5+
react: {
6+
17: {
7+
commands: {
8+
test: 'jest --passWithNoTests -u --testPathIgnorePatterns components/FluentProvider/FluentProvider-hydrate.test.tsx',
9+
},
10+
},
11+
},
12+
};
13+
14+
module.exports = config;

scripts/beachball/base.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"**/*.{test,spec,cy}.{ts,tsx}",
88
"**/*.stories.{ts,tsx}",
99
"**/.eslintrc.*",
10+
"**/rit.config.js",
1011
"**/__fixtures__/**",
1112
"**/__mocks__/**",
1213
"**/docs/**",

scripts/beachball/src/config.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe(`beachball configs`, () => {
2020
'**/*.{test,spec,cy}.{ts,tsx}',
2121
'**/*.stories.{ts,tsx}',
2222
'**/.eslintrc.*',
23+
'**/rit.config.js',
2324
'**/__fixtures__/**',
2425
'**/__mocks__/**',
2526
'**/docs/**',

0 commit comments

Comments
 (0)