Skip to content

Commit

Permalink
update:Add->ConfigJestHTMLReport
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAnonitos committed May 19, 2024
1 parent f567429 commit 76cae88
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
16 changes: 16 additions & 0 deletions __tests__/api/prompt/id/__snapshots__/route.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ exports[`API prompt ID should return status 200 from API route Prompt ID 1`] = `
"tag": "stable-diffusion",
}
`;

exports[`API prompt ID should return status 200 from API route Prompt ID 2`] = `
{
"__v": 0,
"_id": "645cef4b3a66a9ea8f5f46c9",
"creator": {
"__v": 0,
"_id": "645a5ff09c6a32502c433959",
"email": "nguyebao281003@gmail.com",
"image": "https://lh3.googleusercontent.com/a/AGNmyxZ3gxWO5zNF-XeG---qMq4521lDBjTF0ZUtxJk98w=s96-c",
"username": "nguyebao281003",
},
"prompt": "Brad Rigney is a concept artist of fantasy themes, 4 : 3",
"tag": "stable-diffusion",
}
`;
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const config = {
'^.+\\.module\\.(css|sass|scss)$',
],
// setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],

};
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
module.exports = createJestConfig(config);
54 changes: 54 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"cypress": "13.7.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-html-reporter": "3.10.2",
"node-fetch": "3.3.2"
},
"engines": {
Expand Down

0 comments on commit 76cae88

Please sign in to comment.