-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Restructure tests * Clean up * Use rootDir * Fix path * Port to html2 * Add rootDir and reporters * Fix snapshots * Fix snapshots * Move coverage and reporter to root Jest config * Add roots * Pack jest.*.config.js * Include other Jest files * Specify other Jest config * Include HTML2 transformer * Clean up * Move maxWorkers to root config * Add comments
- Loading branch information
Showing
23 changed files
with
150 additions
and
121 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 |
---|---|---|
|
@@ -29,6 +29,7 @@ overrides: | |
|
||
- files: | ||
- 'jest.config.js' | ||
- 'jest.*.config.js' | ||
|
||
env: | ||
node: true | ||
|
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,4 +1,5 @@ | ||
/__tests__/__image_snapshots__/**/__diff_output__ | ||
/__tests__/html2/**/*.snap-*-diff.png | ||
/.env | ||
/*.tgz | ||
/coverage | ||
|
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
__tests__/html/fluentTheme/preChatMessageActivity.layout.withoutImage.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
__tests__/html/fluentTheme/preChatMessageActivity.longTitle.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes
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
File renamed without changes
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
File renamed without changes
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
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { relative, resolve } = require('path'); | ||
|
||
const testRoot = resolve(__dirname, './__tests__/html2/'); | ||
|
||
module.exports = { | ||
process: (_, sourcePath) => { | ||
const html = relative(testRoot, sourcePath); | ||
|
||
return { | ||
code: ` | ||
test(${JSON.stringify(html)}, () => | ||
runHTML(${JSON.stringify(`/__tests__/html2/${html}`)})); | ||
` | ||
}; | ||
} | ||
}; |
Oops, something went wrong.