Skip to content

Commit

Permalink
fix(csslsrs): wasm test
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvenclech committed Nov 29, 2024
1 parent 8b823f0 commit 354aaed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions packages/csslsrs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CSSlsrs - WASM CSS Language Service

Work in progress.
14 changes: 10 additions & 4 deletions packages/csslsrs/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { cp, mkdir, rm } from "node:fs/promises";
await rm("./src/generated/package.json");
await mkdir("./dist/generated", { recursive: true });
await cp("./src/generated", "./dist/generated", { recursive: true });
import { cp, mkdir, rm } from "node:fs/promises"
await rm(new URL("./src/generated/package.json", import.meta.url).pathname)
await mkdir(new URL("./dist/generated", import.meta.url).pathname, {
recursive: true,
})
await cp(
new URL("./src/generated", import.meta.url).pathname,
new URL("./dist/generated", import.meta.url).pathname,
{ recursive: true }
)
4 changes: 2 additions & 2 deletions packages/csslsrs/test/features/hover.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, it } from "mocha"
import { expect } from "chai"
import { TextDocument } from "vscode-languageserver-textdocument"
import { get_hover } from "../../dist/index.js"
import cssCustomData from "../../../../data/css-schema.json"
import { get_hover } from "../../../csslsrs/dist/index"
import cssCustomData from "../../../../crates/csslsrs/data/css-schema.json"

describe("Hover", () => {
it("Can return hover", async () => {
Expand Down

0 comments on commit 354aaed

Please sign in to comment.