Fixes #54899: Do not attempt to use real css loader in mocha unit tests
This commit is contained in:
parent
2f69a93b9d
commit
5ea0df9969
2 changed files with 13 additions and 0 deletions
|
@ -49,6 +49,7 @@ function main() {
|
||||||
nodeMain: __filename,
|
nodeMain: __filename,
|
||||||
baseUrl: path.join(path.dirname(__dirname), 'src'),
|
baseUrl: path.join(path.dirname(__dirname), 'src'),
|
||||||
paths: {
|
paths: {
|
||||||
|
'vs/css': '../test/css.mock',
|
||||||
'vs': `../${ out }/vs`,
|
'vs': `../${ out }/vs`,
|
||||||
'lib': `../${ out }/lib`,
|
'lib': `../${ out }/lib`,
|
||||||
'bootstrap': `../${ out }/bootstrap`
|
'bootstrap': `../${ out }/bootstrap`
|
||||||
|
|
12
test/css.mock.js
Normal file
12
test/css.mock.js
Normal 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({});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
Loading…
Reference in a new issue