mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Uses playwright
This commit is contained in:
parent
699cae24be
commit
c998a7c80f
7 changed files with 244 additions and 1369 deletions
26
test/smoke/server.js
Normal file
26
test/smoke/server.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//@ts-check
|
||||
|
||||
const yaserver = require('yaserver');
|
||||
const http = require('http');
|
||||
const path = require('path');
|
||||
|
||||
const REPO_ROOT = path.join(__dirname, '../../');
|
||||
const PORT = parseInt(process.env.PORT || '8563', 10);
|
||||
|
||||
yaserver
|
||||
.createServer({
|
||||
rootDir: REPO_ROOT
|
||||
})
|
||||
.then((/** @type {any} */ staticServer) => {
|
||||
const server = http.createServer((request, response) => {
|
||||
return staticServer.handle(request, response);
|
||||
});
|
||||
server.listen(PORT, '127.0.0.1', () => {
|
||||
console.log(`Server running at http://127.0.0.1:${PORT}`);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue