Skip to content

Commit

Permalink
prevent test example cache
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 28, 2021
1 parent ea3c11b commit bcc3168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ExampleWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"use strict";

const mock = require('mock-require');
const Example = require('../examples/index');
const { requireUncached } = require('./TestTools');
const consoleOriginal = global.console;

Expand Down Expand Up @@ -160,7 +159,8 @@ const runExample = options => {
const Matter = prepareMatter(options);
const logs = prepareEnvironment(Matter);

const example = Example[options.name]();
const Examples = requireUncached('../examples/index');
const example = Examples[options.name]();
const engine = example.engine;

let totalMemory = 0;
Expand Down

0 comments on commit bcc3168

Please sign in to comment.