jest/e2e/__tests__/requireV8Module.test.ts

13 lines
343 B
TypeScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
test('v8 module', () => {
expect(() => require('v8')).not.toThrow();
expect(require('v8').getHeapStatistics().total_heap_size).toBeDefined();
});