提交 817206ab 编写于 作者: U u013235949

Thu Sep 5 13:34:00 CST 2024 inscode

上级 ca207a2f
run = "npm i && npm run dev"
run = "npm i && npm run test"
language = "node"
[env]
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
\ No newline at end of file
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
module.exports = {
presets: [['@babel/preset-env', {targets: {node: 'current'}}]],
};
\ No newline at end of file
console.log("欢迎来到 InsCode");
\ No newline at end of file
export function sum(a, b) {
return a + b;
}
\ No newline at end of file
import { sum } from './index'
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3);
});
\ No newline at end of file
......@@ -4,15 +4,20 @@
"description": "",
"main": "index.js",
"scripts": {
"dev": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "node index.js",
"test": "jest"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/node": "^18.0.6",
"node-fetch": "^3.2.6"
"@types/node": "^18.0.6",
"node-fetch": "^3.2.6"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"babel-jest": "^29.7.0",
"jest": "^29.7.0"
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册