fix: plugins not loaded with legacy dev (#1764)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Tomofumi Chiba
2023-09-13 16:09:50 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 42dc54500c
commit ec2f785455
14 changed files with 149 additions and 10 deletions
+27
View File
@@ -0,0 +1,27 @@
import { waitForStyle, withPageName } from "$fresh/tests/test_utils.ts";
Deno.test({
name: "dev_command config",
async fn() {
await withPageName(
"./tests/fixture_dev_config/main.ts",
async (page, address) => {
await page.goto(`${address}`);
await waitForStyle(page, "h1", "color", "rgb(220, 38, 38)");
},
);
},
});
Deno.test({
name: "dev_command legacy",
async fn() {
await withPageName(
"./tests/fixture_dev_legacy/main.ts",
async (page, address) => {
await page.goto(`${address}`);
await waitForStyle(page, "h1", "color", "rgb(220, 38, 38)");
},
);
},
});