Skip to content

Commit 64fe8d8

Browse files
committed
To folders
1 parent 95f21f4 commit 64fe8d8

16 files changed

+19
-19
lines changed

tests/computed.test.ts tests/Signal/computed.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Computed", () => {
55
it("should work", () => {

tests/state.test.ts tests/Signal/state.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Signal.State", () => {
55
it("should work", () => {

tests/currentComputed.test.ts tests/Signal/subtle/currentComputed.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../../src/wrapper.js";
33

44
describe("currentComputed", () => {
55
it("works", () => {

tests/untrack.test.ts tests/Signal/subtle/untrack.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../../src/wrapper.js";
33

44
describe("Untrack", () => {
55
it("works", () => {

tests/watch-unwatch.test.ts tests/Signal/subtle/watch-unwatch.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../../src/wrapper.js";
33

44
describe("watch and unwatch", () => {
55
it("handles multiple watchers well", () => {

tests/watcher.test.ts tests/Signal/subtle/watcher.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterEach, describe, expect, it, vi } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../../src/wrapper.js";
33

44
describe("Watcher", () => {
55
type Destructor = () => void;
@@ -61,7 +61,7 @@ describe("Watcher", () => {
6161
output = stateSignal.get();
6262
computedOutput = computedSignal.get();
6363
calls++;
64-
return () => {};
64+
return () => { };
6565
});
6666

6767
// The signal is now watched
@@ -142,7 +142,7 @@ describe("Watcher", () => {
142142
// Adding any other effect after an unwatch should work as expected
143143
const destructor2 = effect(() => {
144144
output = stateSignal.get();
145-
return () => {};
145+
return () => { };
146146
});
147147

148148
stateSignal.set(300);
@@ -152,7 +152,7 @@ describe("Watcher", () => {
152152
it("provides `this` to notify as normal function", () => {
153153
const mockGetPending = vi.fn();
154154

155-
const watcher = new Signal.subtle.Watcher(function () {
155+
const watcher = new Signal.subtle.Watcher(function() {
156156
this.getPending();
157157
});
158158
watcher.getPending = mockGetPending;

tests/custom-equality.test.ts tests/behaviors/custom-equality.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it, vi } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Custom equality", () => {
55
it("works for State", () => {

tests/cycles.test.ts tests/behaviors/cycles.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Cycles", () => {
55
it("detects trivial cycles", () => {

tests/dynamic-dependencies.test.ts tests/behaviors/dynamic-dependencies.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Dynamic dependencies", () => {
55
function run(live) {

tests/errors.test.ts tests/behaviors/errors.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterEach, describe, expect, it, vi } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Errors", () => {
55
it("are cached by computed signals", () => {

tests/liveness.test.ts tests/behaviors/liveness.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it, vi } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("liveness", () => {
55
it("only changes on first and last descendant", () => {

tests/prohibited-contexts.test.ts tests/behaviors/prohibited-contexts.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Prohibited contexts", () => {
55
it("allows writes during computed", () => {

tests/pruning.test.ts tests/behaviors/pruning.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Pruning", () => {
55
it("only recalculates until things are equal", () => {

tests/receivers.test.ts tests/behaviors/receivers.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Receivers", () => {
55
it("is this for computed", () => {

tests/type-checking.test.ts tests/behaviors/type-checking.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../src/wrapper.js";
2+
import { Signal } from "../../src/wrapper.js";
33

44
describe("Expected class shape", () => {
55
it("should be on the prototype", () => {

vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ export default defineConfig({
1414
fileName: "index"
1515
}
1616
}
17-
});
17+
});

0 commit comments

Comments
 (0)