-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fix tests and move to all native test
- Loading branch information
Showing
10 changed files
with
87 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
node_modules | ||
dist | ||
*.vsix | ||
.tsimp | ||
|
||
coverage |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
/* eslint-disable @typescript-eslint/no-floating-promises */ | ||
import {test, describe} from 'node:test'; | ||
import assert from 'node:assert'; | ||
import Server from '../server/server.js'; | ||
/* eslint-disable import/no-unassigned-import */ | ||
// since globs are not fully supported in node v18 and v20 we import the files manually here | ||
|
||
describe('Server', () => { | ||
test('Server is a function', (t) => { | ||
assert.strictEqual(typeof Server, 'function'); | ||
}); | ||
|
||
test('Server can instantiate', (t) => { | ||
const server = new Server({isTest: true}); | ||
assert.strictEqual(typeof server, 'object'); | ||
}); | ||
}); | ||
// TODO: remove this file once node v21 is LTS | ||
import './server.js'; | ||
import './lsp/document-sync.js'; | ||
import './lsp/initialization.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {test, describe} from 'node:test'; | ||
import assert from 'node:assert'; | ||
import Server from '../server/server.js'; | ||
|
||
describe('Server', () => { | ||
test('Server is a function', (t) => { | ||
assert.strictEqual(typeof Server, 'function'); | ||
}); | ||
|
||
test('Server can instantiate', (t) => { | ||
const server = new Server({isTest: true}); | ||
assert.strictEqual(typeof server, 'object'); | ||
}); | ||
}); |