mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Use the global monaco only in the AMD case (see microsoft/monaco-editor#1974)
This commit is contained in:
parent
1af07d9cdb
commit
d7cc098c48
80 changed files with 347 additions and 387 deletions
37
test/all.js
37
test/all.js
|
|
@ -8,6 +8,8 @@ requirejs.config({
|
|||
paths: {
|
||||
'vs/css': 'test/css.mock',
|
||||
'vs/nls': 'test/nls.mock',
|
||||
'out/amd/fillers/monaco-editor-core':
|
||||
'out/amd/fillers/monaco-editor-core-amd',
|
||||
vs: 'node_modules/monaco-editor-core/dev/vs'
|
||||
},
|
||||
nodeRequire: require
|
||||
|
|
@ -25,25 +27,24 @@ global.window = { location: {}, navigator: tmp.window.navigator };
|
|||
requirejs(
|
||||
['./test/setup'],
|
||||
function () {
|
||||
glob(
|
||||
'release/dev/*/*.test.js',
|
||||
{ cwd: path.dirname(__dirname) },
|
||||
function (err, files) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return;
|
||||
}
|
||||
requirejs(
|
||||
files.map((f) => f.replace(/\.js$/, '')),
|
||||
function () {
|
||||
// We can launch the tests!
|
||||
},
|
||||
function (err) {
|
||||
console.log(err);
|
||||
}
|
||||
);
|
||||
glob('out/amd/*/*.test.js', { cwd: path.dirname(__dirname) }, function (
|
||||
err,
|
||||
files
|
||||
) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return;
|
||||
}
|
||||
);
|
||||
requirejs(
|
||||
files.map((f) => f.replace(/\.js$/, '')),
|
||||
function () {
|
||||
// We can launch the tests!
|
||||
},
|
||||
function (err) {
|
||||
console.log(err);
|
||||
}
|
||||
);
|
||||
});
|
||||
},
|
||||
function (err) {
|
||||
console.log(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue