Skip to content

Commit 12683b4

Browse files
authored
Merge pull request #3414 from plotly/feature/dcc-refactor-slider
dcc: refactor slider
2 parents 2444c36 + 751ab10 commit 12683b4

38 files changed

+9852
-4265
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ orbs:
55
percy: percy/[email protected]
66
browser-tools: circleci/[email protected]
77

8-
98
jobs:
109
artifacts:
1110
docker:
@@ -158,8 +157,8 @@ jobs:
158157
python -m venv venv && . venv/Scripts/activate
159158
pip install --no-cache-dir --upgrade -e .[ci,dev] --progress-bar off
160159
- run:
161-
command: |
162-
nvm install 18 && nvm use 18
160+
command: |
161+
nvm install 18 && nvm use 18
163162
- run:
164163
name: npm prereqs
165164
command: |
@@ -318,6 +317,8 @@ jobs:
318317
command: |
319318
. venv/bin/activate && rm -rf components/dash-core-components/dash_core_components
320319
cd components/dash-core-components
320+
npm ci
321+
npm run test:jest
321322
TESTFILES=$(circleci tests glob "tests/integration/**/test_*.py" | circleci tests split --split-by=timings)
322323
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml --junitprefix="components.dash-core-components" ${TESTFILES}
323324
- store_artifacts:

.envrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Check for common virtual environment directories from .gitignore patterns
2+
# and automatically activate one with direnv, if available.
3+
for venv_dir in .venv .env venv env .venv* env* ENV; do
4+
if [ -d "$venv_dir" ] && [ -f "$venv_dir/bin/activate" ]; then
5+
source "$venv_dir/bin/activate"
6+
break
7+
fi
8+
done
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
roots: ['<rootDir>/tests'],
5+
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
6+
transform: {
7+
'^.+\\.ts$': 'ts-jest',
8+
},
9+
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
10+
moduleNameMapper: {
11+
'^@/(.*)$': '<rootDir>/src/$1',
12+
},
13+
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
14+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Jest setup file
2+
// This file is loaded before every test file

0 commit comments

Comments
 (0)