Skip to content

Commit 29f37dc

Browse files
authored
[code-infra] Bring batch of changes from vitest PR (#46795)
1 parent 5f39c8b commit 29f37dc

File tree

151 files changed

+1429
-1110
lines changed

Some content is hidden

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

151 files changed

+1429
-1110
lines changed

apps/pigment-css-vite-app/src/Slider/ZeroSlider.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* globals expect */
2-
import { render } from '@testing-library/react';
2+
import { render } from '@testing-library/react/pure';
33
import Slider from './ZeroSlider';
44

55
describe('Slider', () => {

apps/pigment-css-vite-app/src/pages/fixtures/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function main() {
101101
it(`creates screenshots of ${route}`, async function test() {
102102
// With the playwright inspector we might want to call `page.pause` which would lead to a timeout.
103103
if (process.env.PWDEBUG) {
104-
this.timeout(0);
104+
this?.timeout?.(0);
105105
}
106106

107107
const testcase = await renderFixture(index);

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
"@netlify/functions": "^4.2.5",
102102
"@slack/bolt": "^4.4.0",
103103
"babel-plugin-transform-import-meta": "^2.3.3",
104-
"execa": "^9.6.0"
104+
"execa": "^9.6.0",
105+
"karma-spec-reporter": "^0.0.36"
105106
},
106107
"devDependencies": {
107108
"@arethetypeswrong/cli": "^0.18.2",
@@ -126,6 +127,7 @@
126127
"@types/babel__core": "^7.20.5",
127128
"@types/babel__register": "^7.17.3",
128129
"@types/lodash": "^4.17.20",
130+
"@types/lodash.kebabcase": "^4.1.9",
129131
"@types/mocha": "^10.0.10",
130132
"@types/node": "^20.19.11",
131133
"@types/react": "^19.1.11",
@@ -161,6 +163,7 @@
161163
"karma-webpack": "^5.0.0",
162164
"lerna": "^8.2.3",
163165
"lodash": "^4.17.21",
166+
"lodash.kebabcase": "^4.1.1",
164167
"markdownlint-cli2": "^0.18.1",
165168
"mocha": "^11.7.1",
166169
"nx": "^20.8.2",
@@ -171,6 +174,7 @@
171174
"pretty-quick": "^4.2.2",
172175
"process": "^0.11.10",
173176
"react": "^19.1.1",
177+
"react-dom": "^19.1.1",
174178
"rimraf": "^6.0.1",
175179
"serve": "^14.2.4",
176180
"stylelint": "^16.23.1",

0 commit comments

Comments
 (0)