pokemon-showdown/test/tools/build/sucrase.js
Guangcong Luo 0abdc0c372 Fix npm test build error
The sucrase build test does not reliably run in 2000ms and should have
been marked as slow.
2021-11-19 01:46:10 -05:00

17 lines
563 B
JavaScript

/**
* Quick test to ensure the sucrase build script always works (for downstream devs)
* @author mia-pi-git
*/
'use strict';
const {execSync: exec} = require('child_process');
const common = require('../../common');
(common.hasModule('sucrase') ? describe : describe.skip)("The Sucrase build script", () => {
it("Should compile successfully (slow)", () => {
// we explicitly are not testing the stuff from build tools
// as the replace step in the build is asynchronous and we want to wait for
// the entire thing to end
exec('node build');
});
});