Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ orbs:
percy: percy/[email protected]
browser-tools: circleci/[email protected]


jobs:
artifacts:
docker:
Expand Down Expand Up @@ -158,8 +157,8 @@ jobs:
python -m venv venv && . venv/Scripts/activate
pip install --no-cache-dir --upgrade -e .[ci,dev] --progress-bar off
- run:
command: |
nvm install 18 && nvm use 18
command: |
nvm install 18 && nvm use 18
- run:
name: npm prereqs
command: |
Expand Down Expand Up @@ -318,6 +317,8 @@ jobs:
command: |
. venv/bin/activate && rm -rf components/dash-core-components/dash_core_components
cd components/dash-core-components
npm ci
npm run test:jest
TESTFILES=$(circleci tests glob "tests/integration/**/test_*.py" | circleci tests split --split-by=timings)
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml --junitprefix="components.dash-core-components" ${TESTFILES}
- store_artifacts:
Expand Down
8 changes: 8 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Check for common virtual environment directories from .gitignore patterns
# and automatically activate one with direnv, if available.
for venv_dir in .venv .env venv env .venv* env* ENV; do
if [ -d "$venv_dir" ] && [ -f "$venv_dir/bin/activate" ]; then
source "$venv_dir/bin/activate"
break
fi
done
14 changes: 14 additions & 0 deletions components/dash-core-components/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/tests'],
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
};
2 changes: 2 additions & 0 deletions components/dash-core-components/jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Jest setup file
// This file is loaded before every test file
Loading