mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-31 18:14:55 -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";
|
"use strict";
|
||||||
|
|
||||||
const mock = require('mock-require');
|
const mock = require('mock-require');
|
||||||
const Example = require('../examples/index');
|
|
||||||
const { requireUncached } = require('./TestTools');
|
const { requireUncached } = require('./TestTools');
|
||||||
const consoleOriginal = global.console;
|
const consoleOriginal = global.console;
|
||||||
|
|
||||||
|
@ -160,7 +159,8 @@ const runExample = options => {
|
||||||
const Matter = prepareMatter(options);
|
const Matter = prepareMatter(options);
|
||||||
const logs = prepareEnvironment(Matter);
|
const logs = prepareEnvironment(Matter);
|
||||||
|
|
||||||
const example = Example[options.name]();
|
const Examples = requireUncached('../examples/index');
|
||||||
|
const example = Examples[options.name]();
|
||||||
const engine = example.engine;
|
const engine = example.engine;
|
||||||
|
|
||||||
let totalMemory = 0;
|
let totalMemory = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue