Files
meteor/tools/tests/regressions.js
Matheus Castro 15b5a397dd Remove Fibers from meteor-tools:
- Bulk changes to self-tests definitions. Now we go into each one to see what's failing and what's not.
2023-01-18 09:50:54 -03:00

34 lines
956 B
JavaScript

var selftest = require('../tool-testing/selftest.js');
var Sandbox = selftest.Sandbox;
selftest.define('regressions - web.browser.legacy', async function() {
const s = new Sandbox();
await s.init();
// Make sure we use the right "env" section of .babelrc.
s.set('NODE_ENV', 'development');
// For meteortesting:mocha to work we must set test browser driver
// See https://github.com/meteortesting/meteor-mocha
s.set('TEST_BROWSER_DRIVER', 'puppeteer');
await s.createApp('modules-test-app', 'ecmascript-regression');
await s.cd('modules-test-app', async function() {
const run = s.run(
'test',
'--once',
'--full-app',
'--driver-package',
'meteortesting:mocha',
'--exclude-archs',
'web.browser'
);
run.waitSecs(60);
await run.match('App running at');
await run.match('SERVER FAILURES: 0');
await run.match('CLIENT FAILURES: 0');
await run.expectExit(0);
});
});