Files
T
Nicolò RibaudoandGitHub f883dcaf38 Don't load plugins synchronously in tests (#14679)
* Don't load plugins synchronously in tests

* Full paths
2022-06-22 21:33:22 +02:00

11 lines
271 B
JavaScript

var actualP = transformAsync(
'var x = <sometag __source="custom" />;',
Object.assign({}, opts, { filename: '/fake/path/mock.js' })
)
var expected = 'var x = <sometag __source="custom" />;';
return actualP.then(actual => {
expect(actual.code).toBe(expected);
});