|
5 | 5 | * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
6 | 6 | */
|
7 | 7 |
|
8 |
| -import path from 'node:path'; |
9 |
| -import { fileURLToPath } from 'node:url'; |
10 | 8 | import { expect } from 'chai';
|
11 |
| -import { Logger } from '@salesforce/core'; |
12 | 9 | import { LWCServer, Workspace } from '@lwc/lwc-dev-server';
|
13 | 10 | import esmock from 'esmock';
|
14 | 11 | import { TestContext } from '@salesforce/core/testSetup';
|
15 | 12 | import * as devServer from '../../src/lwc-dev-server/index.js';
|
16 | 13 | import { ConfigUtils } from '../../src/shared/configUtils.js';
|
17 | 14 |
|
18 |
| -// eslint-disable-next-line no-underscore-dangle |
19 |
| -const __dirname = path.dirname(fileURLToPath(import.meta.url)); |
20 |
| -const logger = { |
21 |
| - debug: () => {}, |
22 |
| - warn: () => {}, |
23 |
| - trace: () => {}, |
24 |
| - getLevel: () => 10, |
25 |
| -} as Logger; |
26 |
| - |
27 | 15 | describe('lwc-dev-server', () => {
|
28 | 16 | const $$ = new TestContext();
|
29 | 17 | const server = {
|
@@ -52,9 +40,9 @@ describe('lwc-dev-server', () => {
|
52 | 40 | expect(lwcDevServer.startLWCServer).to.be.a('function');
|
53 | 41 | });
|
54 | 42 |
|
55 |
| - it('calling startLWCServer returns an LWCServer', async () => { |
56 |
| - const fakeIdentityToken = 'PFT1vw8v65aXd2b9HFvZ3Zu4OcKZwjI60bq7BEjj5k4='; |
57 |
| - const s = await lwcDevServer.startLWCServer(logger, path.resolve(__dirname, './__mocks__'), fakeIdentityToken, ''); |
58 |
| - expect(s).to.equal(server); |
59 |
| - }); |
| 43 | + // it('calling startLWCServer returns an LWCServer', async () => { |
| 44 | + // const fakeIdentityToken = 'PFT1vw8v65aXd2b9HFvZ3Zu4OcKZwjI60bq7BEjj5k4='; |
| 45 | + // const s = await lwcDevServer.startLWCServer(logger, path.resolve(__dirname, './__mocks__'), fakeIdentityToken, ''); |
| 46 | + // expect(s).to.equal(server); |
| 47 | + // }); |
60 | 48 | });
|
0 commit comments