Skip to content

Commit a0f45a5

Browse files
Refactor: Centralize ExpressStore export
Moves the `ExpressStore` to be exported from the main library entry point, simplifying its usage for consumers. The corresponding test file is updated to import from the public API, which ensures the exported module is tested correctly.
1 parent b7b1440 commit a0f45a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export {
5757
ChromeStore,
5858
LocalStorage,
5959
StorageKeys,
60+
ExpressStore,
6061
} from "./sessionManager";
6162

6263
// This export provides an implementation of SessionManager<V>
@@ -74,4 +75,3 @@ export const ExpoSecureStore: {
7475
};
7576

7677
export type { SessionManager } from "./sessionManager";
77-
export { ExpressStore } from "./sessionManager/stores/expressStore.js";

lib/sessionManager/stores/expressStore.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { describe, it, expect, beforeEach, vi } from "vitest";
2-
import { ExpressStore } from "./expressStore";
2+
import { ExpressStore } from "../../main";
33
import { StorageKeys } from "../types";
44
import type { Request } from "express";
5-
import { storageSettings } from "../index.js";
5+
import { storageSettings } from "..";
66

77
const mockRequest = (
88
sessionData: Record<string, unknown> | null,

0 commit comments

Comments
 (0)