From ed0d489cdad75d2e212e6eb607e460162798aa98 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Mon, 1 Jul 2024 23:03:47 -0700 Subject: [PATCH] fix tests --- frontend/src/index.ts | 2 +- frontend/src/pages/home.ts | 2 +- frontend/web-test-runner.config.mjs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 85cd00c8..8e9afc8a 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -4,7 +4,7 @@ import { render, type TemplateResult } from "lit"; import { customElement, property, query, state } from "lit/decorators.js"; import { ifDefined } from "lit/directives/if-defined.js"; import { when } from "lit/directives/when.js"; -import { sortBy } from "lodash/fp"; +import sortBy from "lodash/fp/sortBy"; import "broadcastchannel-polyfill"; import "./utils/polyfills"; diff --git a/frontend/src/pages/home.ts b/frontend/src/pages/home.ts index 07134759..8c5477da 100644 --- a/frontend/src/pages/home.ts +++ b/frontend/src/pages/home.ts @@ -2,7 +2,7 @@ import { localized, msg, str } from "@lit/localize"; import { serialize } from "@shoelace-style/shoelace/dist/utilities/form.js"; import { type PropertyValues, type TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators.js"; -import { sortBy } from "lodash/fp"; +import sortBy from "lodash/fp/sortBy"; import type { InviteSuccessDetail } from "@/features/accounts/invite-form"; import type { APIPaginatedList } from "@/types/api"; diff --git a/frontend/web-test-runner.config.mjs b/frontend/web-test-runner.config.mjs index c6319930..455f2fe7 100644 --- a/frontend/web-test-runner.config.mjs +++ b/frontend/web-test-runner.config.mjs @@ -49,6 +49,7 @@ export default { // web-test-runner expects es modules, // include umd/commonjs modules here: "node_modules/url-pattern/**/*", + "node_modules/lodash/**/*", ], }), importMapsPlugin({