Skip to content

Commit 5d70a36

Browse files
authored
chore: update dependencies and configuration (#1201)
1 parent b4a6a1e commit 5d70a36

28 files changed

Lines changed: 6298 additions & 31801 deletions

.github/workflows/docker_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Docker
1+
name: Docker Test
22

33
on:
44
push:
@@ -10,8 +10,8 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
docker-build:
14-
name: Docker Build Test
13+
docker-test:
14+
name: Docker Test
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
**/generated/*
22
.all-contributorsrc
33
CHANGELOG.md
4-
*.har
4+
*.har

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

applitools.config.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ module.exports = {
33

44
waitBeforeCapture: async () => {
55
const startTime = Date.now()
6+
const timeout = 15 * 1000
67
while (
78
document.querySelector('.ant-skeleton-content') ||
89
document.querySelector('.ant-skeleton')
910
) {
1011
await new Promise((resolve) => setTimeout(resolve, 100))
11-
if (Date.now() - startTime > 50000) {
12-
// debugger
12+
const duration = Date.now() - startTime
13+
const isTimeout = duration > timeout
14+
if (isTimeout) {
1315
console.warn('Waited too long for skeletons to disappear.')
1416
throw new Error('Skeletons did not disappear in time on ' + window.location.href)
1517
}

babel.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": ["@babel/preset-env", ["@babel/preset-react", { "runtime": "automatic" }]],
2+
"presets": ["@babel/preset-env"],
33
"plugins": ["babel-plugin-transform-import-meta"]
44
}

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default [
1919
'plugin:@typescript-eslint/recommended',
2020
'plugin:@typescript-eslint/recommended-requiring-type-checking',
2121
'plugin:react/recommended',
22+
'plugin:storybook/recommended',
2223
),
2324
eslintPluginPrettierRecommended,
2425
{

jest.config.ts renamed to jest.config.cjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
export default {
1+
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'jest-environment-jsdom',
44
transform: {
55
'^.+\\.tsx?$': 'ts-jest',
6-
// process `*.tsx` files with `ts-jest`
76
},
87
moduleNameMapper: {
98
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/tests/mocks/fileMock.js',
109
'^.+\\.(css|less|scss)$': 'identity-obj-proxy',
1110
},
12-
testPathIgnorePatterns: [
13-
'/node_modules/',
14-
'/tests/', // Ignoring this folder since playwright tests are here
15-
],
11+
testPathIgnorePatterns: ['/node_modules/', '/tests/'],
1612
collectCoverageFrom: [
1713
'**/src/**/*.{js,jsx,ts,tsx}',
1814
'!**/src/svgLoader.d.ts',

0 commit comments

Comments
 (0)