mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-20 17:10:11 -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 Example = require('../examples/index');
|
||||
const MatterBuild = require('../build/matter');
|
||||
const { versionSatisfies } = require('../src/core/Plugin');
|
||||
const fs = require('fs');
|
||||
|
||||
const examples = Object.keys(Example).filter(key => {
|
||||
const buildVersion = MatterBuild.version;
|
||||
const exampleFor = Example[key].for;
|
||||
return versionSatisfies(buildVersion, exampleFor);
|
||||
});
|
||||
const examples = Object.keys(Example);
|
||||
|
||||
const browserPath = '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome';
|
||||
const demoPagePath = 'http://localhost:8000/';
|
||||
|
|
Loading…
Add table
Reference in a new issue