Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab88a95

Browse files
Fix CI
1 parent 1760ae8 commit ab88a95

File tree

3 files changed

+800
-622
lines changed

3 files changed

+800
-622
lines changed

‎components/dash-core-components/jest.config.js‎

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,25 @@ module.exports = {
44
roots: ['<rootDir>/tests'],
55
testMatch: ['**/__tests__/**/*.{ts,tsx}', '**/?(*.)+(spec|test).{ts,tsx}'],
66
transform: {
7-
'^.+\\.(ts|tsx)$': ['ts-jest', {
8-
tsconfig: {
9-
jsx: 'react',
10-
esModuleInterop: true,
11-
allowSyntheticDefaultImports: true,
12-
types: ['jest', '@testing-library/jest-dom'],
7+
'^.+\\.(ts|tsx)$': [
8+
'ts-jest',
9+
{
10+
tsconfig: {
11+
jsx: 'react',
12+
esModuleInterop: true,
13+
allowSyntheticDefaultImports: true,
14+
types: ['jest', '@testing-library/jest-dom'],
15+
},
1316
},
14-
}],
15-
'^.+\\.js$': ['ts-jest', {
16-
tsconfig: {
17-
allowJs: true,
17+
],
18+
'^.+\\.js$': [
19+
'ts-jest',
20+
{
21+
tsconfig: {
22+
allowJs: true,
23+
},
1824
},
19-
}],
25+
],
2026
},
2127
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
2228
moduleNameMapper: {
@@ -26,4 +32,6 @@ module.exports = {
2632
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
2733
// Disable caching to ensure TypeScript type changes are always picked up
2834
cache: false,
35+
// Limit workers in CI to prevent out-of-memory errors
36+
maxWorkers: process.env.CI ? 2 : undefined,
2937
};

‎components/dash-core-components/tests/dash_core_components_page.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import time
23
from selenium.webdriver.support.ui import WebDriverWait
34
from selenium.webdriver.common.by import By
45
from selenium.webdriver.support import expected_conditions as EC
@@ -42,6 +43,7 @@ def is_month_valid(elem):
4243
matched = days[index]
4344

4445
matched.click()
46+
time.sleep(0.1)
4547
return date.get_attribute("value")
4648

4749
def select_date_range(self, compid, day_range, start_first=True):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /