mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-21 17:14:38 -05:00
run all examples in browser tests
This commit is contained in:
parent
ffa31937f0
commit
5734bfd375
1 changed files with 1 additions and 7 deletions
|
@ -5,15 +5,9 @@ jest.setTimeout(120 * 1000);
|
||||||
|
|
||||||
const puppeteer = require('puppeteer-core');
|
const puppeteer = require('puppeteer-core');
|
||||||
const Example = require('../examples/index');
|
const Example = require('../examples/index');
|
||||||
const MatterBuild = require('../build/matter');
|
|
||||||
const { versionSatisfies } = require('../src/core/Plugin');
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
const examples = Object.keys(Example).filter(key => {
|
const examples = Object.keys(Example);
|
||||||
const buildVersion = MatterBuild.version;
|
|
||||||
const exampleFor = Example[key].for;
|
|
||||||
return versionSatisfies(buildVersion, exampleFor);
|
|
||||||
});
|
|
||||||
|
|
||||||
const browserPath = '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome';
|
const browserPath = '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome';
|
||||||
const demoPagePath = 'http://localhost:8000/';
|
const demoPagePath = 'http://localhost:8000/';
|
||||||
|
|
Loading…
Add table
Reference in a new issue