@vellumai/credential-executor 0.11.8-dev.202609030046.e26b25a → 0.11.8-dev.202609030544.f41a019
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -80,6 +80,7 @@ mock.module("pino", () => ({ default: mockPinoLogger }));
|
|
|
80
80
|
mock.module("pino-pretty", () => ({ default: (): object => ({}) }));
|
|
81
81
|
|
|
82
82
|
// Import after mocking
|
|
83
|
+
import { initLogger } from "../logger.js";
|
|
83
84
|
import { runCesMigrations } from "../migrations/runner.js";
|
|
84
85
|
|
|
85
86
|
// ---------------------------------------------------------------------------
|
|
@@ -119,6 +120,9 @@ function makeMigration(id: string): CesMigration {
|
|
|
119
120
|
|
|
120
121
|
describe("runCesMigrations", () => {
|
|
121
122
|
beforeEach(() => {
|
|
123
|
+
// Rebuild the module-level root logger from the mocked pino, discarding any
|
|
124
|
+
// real logger a previously-executed test file left cached.
|
|
125
|
+
initLogger({ dir: undefined, retentionDays: 0 });
|
|
122
126
|
mockFileExists = false;
|
|
123
127
|
mockFileContents = null;
|
|
124
128
|
existsSyncFn.mockClear();
|