Skip to content

Commit

Permalink
enhance test pipeline by adding template TAG exist tests (#429)
Browse files Browse the repository at this point in the history
* add template exist tests

* eol
  • Loading branch information
vhvb1989 authored Sep 9, 2024
1 parent cac3dd9 commit c771195
Show file tree
Hide file tree
Showing 7 changed files with 6,704 additions and 4,654 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
run: |
npm ci
npm run build
- name: Test
working-directory: website
run: |
npm test
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand Down
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Jest Tests",
"program": "${workspaceFolder}/website/node_modules/jest/bin/jest.js",
"args": [
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"cwd": "${workspaceFolder}/website",
}
]
}
6 changes: 5 additions & 1 deletion website/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: [
require.resolve('@docusaurus/core/lib/babel/preset'),
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
3 changes: 3 additions & 0 deletions website/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testMatch: ['<rootDir>/test/**/*.test.ts']
};
Loading

0 comments on commit c771195

Please sign in to comment.