From 8283d2f10cfb914b608d21b38546ce3a87eac6e7 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Wed, 3 Sep 2025 14:46:26 +0000 Subject: [PATCH] chore: Update mocha settings and add vscode/devcontainer config --- .devcontainer/devcontainer.json | 26 ++++++++++++++++++++++++++ .mocharc.json | 1 + .vscode/settings.json | 9 +++++++++ 3 files changed, 36 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .vscode/settings.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c396cb3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node +{ + "name": "Node.js", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bookworm", + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'postCreateCommand' to run commands after the container is created. + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "hbenl.vscode-mocha-test-adapter", + "dbaeumer.vscode-eslint", + "TakumiI.markdowntable" + ] + } + } + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.mocharc.json b/.mocharc.json index 04afd33..739a9eb 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -2,5 +2,6 @@ "reporter": "dot", "extension": "ts", "import": "tsx/esm", + "spec": "./tests/**/*.test.ts", "exit": true } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d57a7eb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "mochaExplorer.require": "tsx/esm", + "mochaExplorer.timeout": 1200000, + "mochaExplorer.exit": true, + "files.exclude": { + ".git": true, + "**/.git": false + } +} \ No newline at end of file -- 2.51.2