Skip to content

Commit

Permalink
Add tabindex and better sortBy titles to datatables (#169)
Browse files Browse the repository at this point in the history
* 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
dgading authored Aug 5, 2022
1 parent 258ff1c commit 30967d4
Show file tree
Hide file tree
Showing 10 changed files with 35,807 additions and 49,770 deletions.
33 changes: 8 additions & 25 deletions .circleci/config.yml
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ yarn-error.log*
dist
.idea
.docz
docs
docs
lib
9 changes: 1 addition & 8 deletions jest.config.js
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',
},
};
Loading

0 comments on commit 30967d4

Please sign in to comment.