-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Input component, with supporting Hint, Label and ErrorMessage components. - Use template tests from `govuk-frontend` via `govuk-frontend-template-spec` Note: At the moment, Jest snapshots are manually copied across. When Jest 0.24 comes out there will be a feature to allow the snapshot test location to be configured (jestjs/jest#6143), so will keep the manual process for now, with the aim to load them in from node_modules when 0.24 is out.
- Loading branch information
Showing
34 changed files
with
807 additions
and
438 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
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,13 +1,15 @@ | ||
module.exports = { | ||
coverageDirectory: '../coverage/', | ||
coverageDirectory: './coverage/', | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
'<rootDir>/**/*.js', | ||
'!<rootDir>/**/{stories,example,fixtures}.js', | ||
'!<rootDir>/stories/**', | ||
'<rootDir>/src/**/*.js', | ||
'!<rootDir>/src/**/{stories,example,fixtures}.js', | ||
'!<rootDir>/src/stories/**', | ||
], | ||
rootDir: 'src', | ||
roots: ["<rootDir>/src/"], | ||
moduleNameMapper: { | ||
'\\.(css|scss)$': 'identity-obj-proxy', | ||
}, | ||
snapshotSerializers: ['jest-serializer-html'], | ||
setupTestFrameworkScriptFile: "./tests/setup-tests.js", | ||
}; |
Oops, something went wrong.