1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

chore(structure): move FakeStorageService into a spec folder

This commit is contained in:
addisonbeck
2025-06-18 13:45:01 -04:00
parent 7b4d467681
commit 8e50b1484c
4 changed files with 8 additions and 4 deletions

View File

@@ -19,6 +19,10 @@ const moduleRules = [
use: "ts-loader",
exclude: path.resolve(__dirname, "node_modules"),
},
{
test: /\.spec\.ts$|[\\/]spec[\\/]/,
exclude: true,
},
];
const plugins = [

View File

@@ -1,5 +1,5 @@
export * from "./client-locations";
export * from "./fake-storage.service";
export * from "./spec/fake-storage.service";
export * from "./html-storage-location.enum";
export * from "./memory-storage.service";
export * from "./serialized-memory-storage.service";

View File

@@ -1,8 +1,8 @@
import { MockProxy, mock } from "jest-mock-extended";
import { Subject } from "rxjs";
import { StorageOptions } from "./storage-options";
import { StorageService, ObservableStorageService, StorageUpdate } from "./storage.service";
import { StorageOptions } from "../storage-options";
import { StorageService, ObservableStorageService, StorageUpdate } from "../storage.service";
const INTERNAL_KEY = "__internal__";

View File

@@ -6,5 +6,5 @@
"types": ["node"]
},
"include": ["src/**/*.ts"],
"exclude": ["jest.config.js", "src/**/*.spec.ts"]
"exclude": ["jest.config.js", "src/**/*.spec.ts", "src/spec/*.ts"]
}