Skip to content

Commit 318681d

Browse files
committed
refactor: move tests to test folder
1 parent 56cdb73 commit 318681d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/index.spec.ts test/index.spec.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {
1414
StoresInputValues,
1515
SubscribableStore,
1616
SubscriberObject,
17-
} from './index';
17+
} from '../src/index';
1818
import {
1919
DerivedStore,
2020
Store,
@@ -29,11 +29,11 @@ import {
2929
symbolObservable,
3030
untrack,
3131
writable,
32-
} from './index';
33-
import { rawStoreSymbol } from './internal/exposeRawStores';
34-
import { RawStoreFlags } from './internal/store';
35-
import { flushUnused } from './internal/storeTrackingUsage';
36-
import type { RawStoreWritable } from './internal/storeWritable';
32+
} from '../src/index';
33+
import { rawStoreSymbol } from '../src/internal/exposeRawStores';
34+
import { RawStoreFlags } from '../src/internal/store';
35+
import { flushUnused } from '../src/internal/storeTrackingUsage';
36+
import type { RawStoreWritable } from '../src/internal/storeWritable';
3737

3838
const expectCorrectlyCleanedUp = <T>(store: StoreInput<T>) => {
3939
const rawStore = (store as any)[rawStoreSymbol] as RawStoreWritable<T>;

vitest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ process.env.NODE_OPTIONS = `${process.env.NODE_OPTIONS ?? ''} --expose-gc`;
66
export default defineConfig({
77
test: {
88
setupFiles: ['test.ts'],
9-
include: ['src/**/*.spec.ts'],
9+
include: ['test/**/*.spec.ts'],
1010
environment: 'happy-dom',
1111
coverage: {
1212
provider: 'v8',

0 commit comments

Comments
 (0)