Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Aug 2, 2023
1 parent 73ba927 commit 1cb9db7
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import {foo} from "mod";
export {foo};
import {foo} from "vitest-css-test-module";

const bar = "bar";
export {foo, bar};
4 changes: 2 additions & 2 deletions index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {test, expect} from "vitest";
import {foo} from "./index.js";
import {foo, bar} from "./index.js";

test("foo", () => {
expect(foo).toEqual("foo");
expect(bar).toEqual("bar");
});
5 changes: 0 additions & 5 deletions mod/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "module",
"dependencies": {
"mod": "file:./mod",
"jsdom": "22.1.0",
"vitest": "0.34.1"
"vitest": "0.34.1",
"vitest-css-test-module": "1.0.0"
}
}
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions vitest-css-test-module/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "vitest-css-test-module",
"version": "1.0.0",
"type": "module",
"exports": "./index.js"
}

0 comments on commit 1cb9db7

Please sign in to comment.