Skip to content

Commit 2d56475

Browse files
committed
feat(vscode): rename to SQLMesh prefix
- add unit testing framework
1 parent 054afe5 commit 2d56475

10 files changed

Lines changed: 248 additions & 16 deletions

File tree

pnpm-lock.yaml

Lines changed: 151 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode/extension/.vscodeignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@ assets/logo.svg
1616
esbuild.js
1717
openapi.json
1818
test-results/**
19-
E2E_TESTING.md
19+
E2E_TESTING.md
20+
**/*.test.ts
21+
**/*.test.js
22+
.mocharc.json
23+
tsconfig.test.json
24+
tsconfig.build.json
25+
src/test/**
26+
tests/**
27+
.claude

vscode/extension/esbuild.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ async function main() {
1818
plugins: [
1919
/* add to the end of plugins array */
2020
esbuildProblemMatcherPlugin,
21+
{
22+
name: 'exclude-tests',
23+
setup(build) {
24+
build.onResolve({ filter: /\.test\.ts$/ }, args => {
25+
return { external: true }
26+
})
27+
},
28+
},
2129
],
2230
})
2331
if (watch) {

vscode/extension/eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import eslint from '@eslint/js'
21
import tseslint from 'typescript-eslint'
32

43
export default tseslint.config(
@@ -26,4 +25,16 @@ export default tseslint.config(
2625
'@typescript-eslint/no-unsafe-member-access': 'off',
2726
},
2827
},
28+
{
29+
files: ['**/*.ts'],
30+
ignores: ['**/*.test.ts'],
31+
rules: {
32+
'no-restricted-imports': [
33+
'error',
34+
{
35+
patterns: ['*.test', '*.test.ts', '**/test/**'],
36+
},
37+
],
38+
},
39+
},
2940
)

0 commit comments

Comments
 (0)