-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from Webpack and Jest to Vite and Vitest (#3104)
* Replace Webpack with Vite * Bulk rename component test files to use jsx * Don't mock `react-dom` when we don't have to * Repalce Jest with Vitest * Fix tests after vitest migration * Rename dist folder for publish-to-gh-pages
- Loading branch information
1 parent
8ade740
commit 47ed19d
Showing
54 changed files
with
4,278 additions
and
3,130 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DEFAULT_SERVERINFO } from "../src/reducers/session"; | ||
import { vi } from 'vitest'; | ||
|
||
export const mockFetchServerInfo = vi.fn().mockReturnValue(DEFAULT_SERVERINFO); | ||
|
||
const mock = vi.fn().mockImplementation(server => { | ||
return { | ||
fetchServerInfo: mockFetchServerInfo, | ||
remote: server, | ||
}; | ||
}); | ||
|
||
export default mock; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Kinto Administration</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<link rel="icon" type="image/x-icon" href="../images/favicon.png"> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
|
||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.