mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-12 16:08:50 -05:00
prevent test example cache
This commit is contained in:
parent
ea3c11b1fe
commit
bcc31682d7
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
|||
"use strict";
|
||||
|
||||
const mock = require('mock-require');
|
||||
const Example = require('../examples/index');
|
||||
const { requireUncached } = require('./TestTools');
|
||||
const consoleOriginal = global.console;
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue