Skip to content

Commit

Permalink
Use viteConfig.basic for vite deno integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
redabacha committed Sep 2, 2024
1 parent 9576356 commit ead6719
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions integration/helpers/vite-deno-template/deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tasks": {
"build": "deno run -A npm:@remix-run/dev@* vite:build",
"dev": "deno run -A npm:@remix-run/dev@* vite:dev",
"build": "deno run -A 'npm:@remix-run/dev@*' vite:build",
"dev": "deno run -A 'npm:@remix-run/dev@*' vite:dev",
"typecheck": "deno check '**/*' && deno run -A npm:typescript@^5.5.4/tsc",
"typegen": "deno types > ./app/deno.d.ts"
},
Expand Down
1 change: 1 addition & 0 deletions integration/helpers/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ function deno(
...process.env,
...colorEnv,
...options.env,
DENO_FUTURE: "1",
},
stdio: "pipe",
});
Expand Down
12 changes: 1 addition & 11 deletions integration/vite-deno-test.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
import { expect } from "@playwright/test";
import dedent from "dedent";

import type { Files } from "./helpers/vite.js";
import { test, viteConfig } from "./helpers/vite.js";

const files: Files = async ({ port }) => ({
"vite.config.ts": dedent`
import { vitePlugin as remix } from "@remix-run/dev";
export default {
${await viteConfig.server({ port })}
plugins: [
remix(),
],
}
`,
"vite.config.ts": await viteConfig.basic({ port }),
"app/routes/_index.tsx": `
import { Form, useLoaderData } from "@remix-run/react";
import {
Expand Down

0 comments on commit ead6719

Please sign in to comment.