Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a262bd2
Change the version
SerhiiCho Jan 30, 2025
5b69941
Add testing with Mocha
SerhiiCho Jan 30, 2025
cbdec02
Fix error thanks to Deep Seek
SerhiiCho Jan 31, 2025
f419877
Update launch arguments to avoid GPU errors on Mac M1 Pro
SerhiiCho Jan 31, 2025
770cb1f
Add more tests
SerhiiCho Jan 31, 2025
a908403
Remove unnecessary security warning suppression in test runner
SerhiiCho Jan 31, 2025
f075366
Rename build to out
SerhiiCho Jan 31, 2025
609dc29
Remove unused launch configuration for extension tests
SerhiiCho Jan 31, 2025
0dd8870
Update launch arguments to avoid GPU errors and disable extensions
SerhiiCho Jan 31, 2025
a80a48d
Add launch configuration for extension tests with appropriate arguments
SerhiiCho Jan 31, 2025
8928b52
Remove build directory
SerhiiCho Jan 31, 2025
a9a97bd
Add colors to the test output
SerhiiCho Jan 31, 2025
3f62c71
Remove some comments
SerhiiCho Jan 31, 2025
019b229
Refactor test
SerhiiCho Jan 31, 2025
e029bf6
Fix tests
SerhiiCho Jan 31, 2025
6835d6b
Refactor loop object completion logic to simplify variable check
SerhiiCho Jan 31, 2025
15cabdd
Simplify completion check in loops test by removing unnecessary item …
SerhiiCho Jan 31, 2025
38efc98
Simplified test file
SerhiiCho Feb 1, 2025
c5f913b
Refactor loop completion tests to standardize position variable naming
SerhiiCho Feb 1, 2025
646d020
Add test for directives
SerhiiCho Feb 1, 2025
1fb9866
Add directive names constants for improved code clarity
SerhiiCho Feb 1, 2025
9c1ba1c
Code refactoring. Change importing files
SerhiiCho Feb 1, 2025
2711c01
Rename var
SerhiiCho Feb 2, 2025
15f5912
Code refactoring
SerhiiCho Feb 2, 2025
1d01972
Don't show loop directories outside of loops
SerhiiCho Feb 2, 2025
c67ca2f
Add test
SerhiiCho Feb 2, 2025
dbae6cf
Add one more test
SerhiiCho Feb 2, 2025
4e3bab4
Refactor tests
SerhiiCho Feb 2, 2025
d02f0c4
Add assertLength helper
SerhiiCho Feb 2, 2025
cb9974f
Refactor tests
SerhiiCho Feb 2, 2025
2686dce
Add test for component directives completion
SerhiiCho Feb 2, 2025
cfc959a
Add showing slot directives only inside components
SerhiiCho Feb 2, 2025
1fec3aa
Code refactor. Improve readablity of tests
SerhiiCho Feb 2, 2025
05713d9
Add github actions
SerhiiCho Feb 2, 2025
0d96914
Update changelog
SerhiiCho Feb 2, 2025
627123b
Add lock file to git
SerhiiCho Feb 2, 2025
2900b10
Fix tests.yml file
SerhiiCho Feb 2, 2025
4bb6362
Update package.json file
SerhiiCho Feb 2, 2025
7f0b53b
Update github actions yaml file
SerhiiCho Feb 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm' # Cache npm dependencies

- name: Install dependencies
run: npm install

- name: Run tests with xvfb
run: xvfb-run --auto-servernum npm run test
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
*.vsix
yarn.lock
package-lock.json
build
out
.vscode-test
14 changes: 14 additions & 0 deletions .vscode-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { defineConfig } = require('@vscode/test-cli')

module.exports = defineConfig([
{
label: 'tests',
files: 'out/test/**/*.test.js',
version: 'insiders',
mocha: {
ui: 'tdd',
timeout: 20000,
color: true,
},
},
])
18 changes: 14 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": ["${workspaceFolder}/out/test/**/*.js"]
}
]
}
}
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
"typescript.tsdk": "node_modules/typescript/lib",
"files.watcherExclude": {
"**/build/win-unpacked/**": true
}
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.5.3] - 2025-02-02
- Added tests coverage to test all the necessary features
- Change so that you can only see `@break`, `@breakIf`, `@continue`, `@continueIf` directives when you are inside a loop
- Change so that you can only see `@slot` and `@slot(name)` directives when you are inside a component

## [1.5.2] - 2025-01-30
- Fixed issue where loop object would only show autocomplete suggestions when it was inside `{{` and `}}` brackets
- Refactor code to make it more readable and maintainable
Expand Down
Loading