File size: 565 Bytes
5c2ed06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * 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');
	});
});