Fixes #54899: Do not attempt to use real css loader in mocha unit tests

This commit is contained in:
Alex Dima 2018-08-08 17:51:51 +02:00
parent 2f69a93b9d
commit 5ea0df9969
2 changed files with 13 additions and 0 deletions

View file

@ -49,6 +49,7 @@ function main() {
nodeMain: __filename,
baseUrl: path.join(path.dirname(__dirname), 'src'),
paths: {
'vs/css': '../test/css.mock',
'vs': `../${ out }/vs`,
'lib': `../${ out }/lib`,
'bootstrap': `../${ out }/bootstrap`

12
test/css.mock.js Normal file
View file

@ -0,0 +1,12 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
define([], function() {
return {
load: function(name, req, load) {
load({});
}
};
});