我有一個基本測試,只是比較 2 個數字,但我無法讓它運行。誰能向我解釋為什么以及如何解決這個問題?杰森{ "scripts": { "test": "mocha test/**/*.js"}, "name": "image-gallery", "version": "1.0.0", "description": "", "main": "script-test.js", "directories": { "test": "script-test.js" }, "author": "", "license": "ISC"}測試.jsconst assert = require('assert');describe('number test', function() { it('matching numbers', function() { assert.ok(2 === 2); }); });
進行摩卡測試?
牛魔王的故事
2023-10-14 19:23:19