Benjamin Hallion 6407cadb0f
feat: 'cloneData' option to buildMemoryStorage (#581)
* Add 'storeClone' option to buildMemoryStorage function

* fix lint issue

* fix lint issue

* add test for new storeClone option

* fix linter issue

* update comment

* update code according to review

* fix test

* Update src/storage/memory.ts

Add this comment to code coverage skip the structuredClone test

Co-authored-by: Arthur Fiorette <github@arthur.place>

* Update test/storage/memory.test.ts

Co-authored-by: Arthur Fiorette <github@arthur.place>

* fix test

* fix indent

* Update src/storage/memory.ts

* Update test/storage/memory.test.ts

* Update test/storage/memory.test.ts

* Update test/storage/memory.test.ts

* Update test/storage/memory.test.ts

* refactor: docs and more

---------

Co-authored-by: Arthur Fiorette <github@arthur.place>
Co-authored-by: arthurfiorette <arthur.fiorette@gmail.com>
2023-07-01 19:35:53 -03:00

15 lines
336 B
TypeScript

describe('tests __ACI_DEV__ usage', () => {
it('expects importing with __ACI_DEV__ true prints a warning', async () => {
expect(__ACI_DEV__).toBeTruthy();
const oldLog = console.error;
console.error = jest.fn();
await import('../src');
expect(console.error).toBeCalled();
console.error = oldLog;
});
});