Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benwallman committed Oct 5, 2023
1 parent 07238bf commit d44961b
Show file tree
Hide file tree
Showing 15 changed files with 27,371 additions and 203,088 deletions.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@babel/preset-env']
}
4 changes: 0 additions & 4 deletions contribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,13 @@ We use [Jest] as the test runner and assertion library for all code. To run test

The applications in the `examples/` folder are all used as integration tests which are always run on CI. You can run the integration tests locally using the `npm test:examples` command. Integration tests may use [Supertest] or [Puppeteer].

Components are rendered in tests using [Enzyme] with specific assertions provided by the [enzyme-matchers] library for Jest.

Code style is enforced with Prettier and non-compliant code should be automatically formatted when committing.

We have implemented [ESLint] to statically analyse code for problems.

[Jest]: https://jestjs.io/
[Supertest]: https://github.com/visionmedia/supertest
[Puppeteer]: https://github.com/smooth-code/jest-puppeteer
[Enzyme]: https://github.com/airbnb/enzyme
[enzyme-matchers]: https://github.com/FormidableLabs/enzyme-matchers/blob/HEAD/packages/jest-enzyme
[ESLint]: https://eslint.org/


Expand Down
1 change: 1 addition & 0 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom'
6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
roots: ['./packages'],
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testPathIgnorePatterns: ['/node_modules/'],
setupFilesAfterEnv: ['./jest.enzyme.ts']
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
}
8 changes: 0 additions & 8 deletions jest.enzyme.ts

This file was deleted.

Loading

0 comments on commit d44961b

Please sign in to comment.