Skip to content

Commit

Permalink
got the unit test working
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney authored and LarsDenBakker committed Apr 29, 2022
1 parent 143aad8 commit 0cf8890
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/dev-server-esbuild/test/fixture/a/b/foo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// a comment
class SomeClass {
prop: string
}

import 'some-lib/some-file.js';
import '../../x.js';
Expand Down
3 changes: 2 additions & 1 deletion packages/dev-server-esbuild/test/fixture/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"removeComments": false
"target": "es2022",
"useDefineForClassFields": true
}
}
4 changes: 2 additions & 2 deletions packages/dev-server-esbuild/test/ts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class Bar {
});


it('reads tsconfig.json file', async () => {
it.only('reads tsconfig.json file', async () => {
const { server, host } = await createTestServer({
rootDir: path.join(__dirname, 'fixture'),
plugins: [
Expand All @@ -265,7 +265,7 @@ class Bar {
'application/javascript; charset=utf-8',
);

expectIncludes(text, '// a comment');
expectIncludes(text, '__publicField(this, "prop");');
} finally {
server.stop();
}
Expand Down

0 comments on commit 0cf8890

Please sign in to comment.