• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const { ObjectAssign, ObjectDefineProperty } = primordials;
3const { test, describe, it, before, after, beforeEach, afterEach } = require('internal/test_runner/harness');
4const { run } = require('internal/test_runner/runner');
5
6module.exports = test;
7ObjectAssign(module.exports, {
8  after,
9  afterEach,
10  before,
11  beforeEach,
12  describe,
13  it,
14  run,
15  test,
16});
17
18let lazyMock;
19
20ObjectDefineProperty(module.exports, 'mock', {
21  __proto__: null,
22  configurable: true,
23  enumerable: true,
24  get() {
25    if (lazyMock === undefined) {
26      const { MockTracker } = require('internal/test_runner/mock');
27
28      lazyMock = new MockTracker();
29    }
30
31    return lazyMock;
32  },
33});
34