Skip to content

Commit 766082d

Browse files
committed
refactor(many): rename tests folders and clean up old theme tests, check dependencies
1 parent baf1645 commit 766082d

File tree

356 files changed

+350
-7729
lines changed

Some content is hidden

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

356 files changed

+350
-7729
lines changed

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ jobs:
3535
run: npm run bootstrap
3636
- name: Run vitest unit tests
3737
run: npm run test:vitest
38-
- name: Run codemods unit tests
39-
run: npm run test:codemods
4038
cypress:
4139
name: Cypress component tests
4240
runs-on: ubuntu-latest
@@ -52,18 +50,4 @@ jobs:
5250
run: npm run bootstrap
5351
- name: Run Cypress components tests
5452
run: npm run cy:component
55-
legacy-tests:
56-
name: Legacy unit tests
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/checkout@v4
60-
- uses: actions/setup-node@v4
61-
with:
62-
node-version: '22'
63-
cache: 'npm'
64-
- name: Install dependencies
65-
run: npm ci
66-
- name: Bootstrap project
67-
run: npm run bootstrap
68-
- name: Run legacy unit tests
69-
run: npm run test
53+

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up project.
2121
run: npm run bootstrap
2222
- name: Run tests.
23-
run: USE_REACT_STRICT_MODE=0 npm run test && npm run test:vitest
23+
run: USE_REACT_STRICT_MODE=0 npm run test:vitest
2424
- name: Release to NPM
2525
env:
2626
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ const finalConfig = tseslint.config(
168168
{
169169
// Vitest tests
170170
files: [
171-
'**/__new-tests__/**',
172-
'packages/ui-codemods/__tests__/*'
171+
'**/__tests__/**'
173172
],
174173
plugins: {
175174
vitest
@@ -182,7 +181,6 @@ const finalConfig = tseslint.config(
182181
},
183182
{ // Do not check unit tests for a11y
184183
ignores: [
185-
'**/__new-tests__/**',
186184
'**/__tests__/**'
187185
],
188186
plugins: {

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
"start": "npm run start --workspace=docs-app",
1919
"start:watch": "npm run start:watch --workspace=docs-app",
2020
"dev": "npm run start:watch",
21-
"test": "ui-scripts test --randomize",
2221
"cy:component": "cypress run --component",
2322
"test:vitest": "vitest --watch=false",
2423
"test:vitest-watch": "vitest",
25-
"test:codemods": "vitest --watch=false --root=packages/ui-codemods",
2624
"lint": "lerna run lint --stream",
2725
"lint:changes": "npm run lint -- --since HEAD^",
2826
"lint:fix": "lerna run lint:fix --stream",

packages/emotion/src/InstUISettingsProvider/__tests__/InstUISettingProvider.test.tsx renamed to packages/emotion/src/InstUISettingsProvider/__old-tests__/InstUISettingProvider.test.tsx

File renamed without changes.

packages/emotion/src/InstUISettingsProvider/__new-tests__/InstUISettingsProvider.test.tsx renamed to packages/emotion/src/InstUISettingsProvider/__tests__/InstUISettingsProvider.test.tsx

File renamed without changes.

packages/emotion/src/__tests__/getComponentThemeOverride.test.ts renamed to packages/emotion/src/__old-tests__/getComponentThemeOverride.test.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)