Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Apr 3, 2024
1 parent 91546eb commit 7c2c9ed
Show file tree
Hide file tree
Showing 20 changed files with 12,559 additions and 23 deletions.
700 changes: 681 additions & 19 deletions integration-tests/package-lock.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions integration-tests/vite-jest-msw/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
["@babel/preset-env", { "targets": { "node": "current" } }],
["@babel/preset-react", { "runtime": "automatic" }],
"@babel/preset-typescript"
],
"plugins": [
["inline-json-import", {}],
"@babel/plugin-proposal-explicit-resource-management"
]
}
6 changes: 6 additions & 0 deletions integration-tests/vite-jest-msw/@types/graphql.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module "*.graphql" {
import { DocumentNode } from "graphql";
const Schema: DocumentNode;

export = Schema;
}
13 changes: 13 additions & 0 deletions integration-tests/vite-jest-msw/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions integration-tests/vite-jest-msw/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { Config } from "jest";

const config: Config = {
globals: {
"globalThis.__DEV__": JSON.stringify(true),
},
testEnvironment: "jsdom",
setupFiles: ["./tests/jest.polyfills.js"],
setupFilesAfterEnv: ["./tests/setupTests.ts"],
transform: {
"\\.(gql|graphql)$": "@graphql-tools/jest-transform",
".*": "babel-jest",
},
testEnvironmentOptions: {
customExportConditions: [""],
},
};

export default config;
Loading

0 comments on commit 7c2c9ed

Please sign in to comment.