-
Notifications
You must be signed in to change notification settings - Fork 13
add visual regression coverage #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3cb129b
commit untrack files
8254532
require jest local storage mock
e3d0e3d
commit untracked files
a1788a0
revert previous changes and set up visual regression tests
50fd776
fix storyshot initialization issues
95a009f
fix renderhook act mismatch warning
152116e
fix styling issue
f1bb473
remove unnecessary installs
b2a6e44
remove unnecessary configs and installs
d32a2e7
remove unnecessary storybook config
b3a14fd
add update snapshot to command
a85d3ac
remove update snapshot command
69f0b91
remove local snapshots
aba181e
Merge branch 'main' into dev/visual-regression-test
290fe3c
add snapshot
0bed846
update command line to only include components in storyshot testing a…
ff823a2
Merge branch 'main' into dev/visual-regression-test
fa7001d
update snapshot due to preview.js change in main
32746ce
add combined coverage
24a4f84
sync package-lock
79ca399
Revert "add combined coverage"
fe789a0
change test script name for consistency with other tests in combined …
e84a3a7
use jest projects to define different configurations for best practice
c380dd3
correct styling issues
2dc9a0e
change workflow test script for coverall
768e7d6
correct test script in workflow
0b6c17c
update jest config files with a base config and update package.json f…
8aa7c01
change directory and use base config
df35d98
change coverage directory
d51ebe2
use require
770238e
fix styling and change coverage file path
46170c4
correct coverage file path
868d39c
change coverage directory
f8ad154
remove dom from import and edit stories test match
6a4e520
script clean up
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| export const base_config = { | ||
| bail: 0, | ||
| verbose: true, | ||
| collectCoverage: false, | ||
| moduleFileExtensions: [ | ||
| 'js', | ||
| 'json', | ||
| 'ts', | ||
| 'tsx' | ||
| ], | ||
| moduleDirectories: [ | ||
| 'node_modules', | ||
| '<rootDir>' | ||
| ], | ||
| resolver: '<rootDir>/tests/__setup__/resolver.ts', | ||
| setupFilesAfterEnv: [ | ||
| '<rootDir>/tests/__setup__/setup-env.ts' | ||
| ], | ||
| testEnvironment: 'jsdom', | ||
| testPathIgnorePatterns: [ | ||
| '<rootDir>/tests/__setup__/*', | ||
| '<rootDir>/tests/__fixtures__/*' | ||
| ], | ||
| transformIgnorePatterns: [ | ||
| '/node_modules/(?!(@yext/search-headless-react)/)' | ||
| ], | ||
| moduleNameMapper: { | ||
| './SearchCore': '<rootDir>/tests/__fixtures__/core/SearchCore.ts', | ||
| '\\.(css|less|scss|sass)$': 'identity-obj-proxy' | ||
| }, | ||
| resetMocks: true, | ||
| restoreMocks: true | ||
| }; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { base_config } from './jest.base.config'; | ||
| module.exports = { | ||
| ...base_config, | ||
| collectCoverageFrom: [ | ||
| 'src/**' | ||
| ], | ||
| testMatch: [ | ||
| '<rootDir>/tests/**/*.test.ts?(x)' | ||
| ] | ||
| }; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import { base_config } from "./jest.base.config"; | ||
|
|
||
| module.exports = { | ||
| ...base_config, | ||
| collectCoverageFrom: [ | ||
| 'src/components/**' | ||
| ], | ||
| coverageDirectory: 'coverage/visual-regression', | ||
| testMatch: [ | ||
| '<rootDir>/tests/storyshot.test.ts' | ||
| ] | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.