-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tabindex and better sortBy titles to datatables (#169)
* Add tabindex and better sortBy titles to datatables * Update components and tests to get it working without react-scripts * Fix test coverage command * Remove test jest function * Remove extra key prop on datatable * Add babel/transform runtime for Rollup command * Move babel runtime to devDependencies
- Loading branch information
Showing
10 changed files
with
35,807 additions
and
49,770 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
version: 2.1 | ||
version: 2 | ||
jobs: | ||
build: | ||
parameters: | ||
pr-version: | ||
type: string | ||
default: "1.2.0" | ||
parallelism: 1 | ||
machine: | ||
image: circleci/classic:latest | ||
docker: | ||
- image: cimg/node:16.14.2 | ||
environment: | ||
TEST_RESULTS: /tmp/test-results | ||
DKTL_VERSION: "4.2.0" | ||
CC_TEST_REPORTER_ID: 7fb6eaf0ab35ac9e1e6889b9af53f766331175459bd25bfaee419c1bb1438027 | ||
steps: | ||
- checkout | ||
- run: node --version | ||
- run: | ||
name: "Setup variables" | ||
command: | | ||
echo $CIRCLE_BRANCH | ||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV | ||
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
- run: | ||
name: Setup Code Climate test-reporter | ||
command: | | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
chmod +x ./cc-test-reporter | ||
name: Install Dependencies | ||
command: npm install | ||
- run: | ||
name: Install Dependencies and Run Jest Tests | ||
command: | | ||
nvm install 10 | ||
npm install | ||
npm rebuild node-sass | ||
node --version | ||
./cc-test-reporter before-build | ||
npx jest --coverage | ||
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $? | ||
name: Run Jest Tests | ||
command: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,5 @@ yarn-error.log* | |
dist | ||
.idea | ||
.docz | ||
docs | ||
docs | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
module.exports = { | ||
testPathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/node_modules/'], | ||
setupFilesAfterEnv: ['<rootDir>/setupTests.js'], | ||
"testEnvironment": "jsdom", | ||
moduleNameMapper: { | ||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js', | ||
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js', | ||
'^dnd-core$': 'dnd-core/dist/cjs', | ||
'^react-dnd$': 'react-dnd/dist/cjs', | ||
'^react-dnd-html5-backend$': 'react-dnd-html5-backend/dist/cjs', | ||
'^react-dnd-multi-backend$': 'react-dnd-multi-backend', | ||
'^HTML5toTouch$': 'react-dnd-html5-backend/dist/cjs', | ||
'^react-dnd-touch-backend$': 'react-dnd-touch-backend/dist/cjs', | ||
'^react-dnd-test-backend$': 'react-dnd-test-backend/dist/cjs', | ||
'^react-dnd-test-utils$': 'react-dnd-test-utils/dist/cjs', | ||
}, | ||
}; |
Oops, something went wrong.