Skip to content

Commit cc55e01

Browse files
committed
Remove beforeEach block
1 parent a897111 commit cc55e01

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/logger/tests/unit/logBuffer.test.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,9 @@ class TestLogger extends Logger {
2626
}
2727

2828
describe('bufferLog', () => {
29-
const ENVIRONMENT_VARIABLES = process.env;
30-
31-
beforeEach(() => {
32-
process.env = {
33-
...ENVIRONMENT_VARIABLES,
34-
POWERTOOLS_LOGGER_LOG_EVENT: 'true',
35-
POWERTOOLS_DEV: 'true',
36-
};
37-
vi.clearAllMocks();
38-
});
3929
it('outputs a warning when there is an error buffering the log', () => {
4030
// Prepare
31+
process.env.POWERTOOLS_DEV = 'true';
4132
const logger = new TestLogger();
4233
logger.enableBuffering();
4334
logger.overrideBufferLogItem();

0 commit comments

Comments
 (0)