Initial commit
This commit is contained in:
1
examples/basic-math/README.md
Normal file
1
examples/basic-math/README.md
Normal file
@@ -0,0 +1 @@
|
||||
# Basic Math
|
||||
26
examples/basic-math/package.json
Normal file
26
examples/basic-math/package.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "basic-math",
|
||||
"version": "1.0.0",
|
||||
"description": "Let's talk about adding and subtracting numbers.",
|
||||
"main": "src/index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vitest --ui",
|
||||
"test": "vitest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/stevekinney/testing-javascript.git"
|
||||
},
|
||||
"author": "Steve Kinney <hello@stevekinney.net>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/stevekinney/testing-javascript/issues"
|
||||
},
|
||||
"homepage": "https://github.com/stevekinney/testing-javascript#readme",
|
||||
"devDependencies": {
|
||||
"@vitest/ui": "^2.1.1",
|
||||
"vite": "^5.4.5",
|
||||
"vitest": "^2.1.1"
|
||||
}
|
||||
}
|
||||
0
examples/basic-math/src/calculator.js
Normal file
0
examples/basic-math/src/calculator.js
Normal file
1
examples/basic-math/src/calculator.test.ts
Normal file
1
examples/basic-math/src/calculator.test.ts
Normal file
@@ -0,0 +1 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
5
examples/basic-math/vitest.config.js
Normal file
5
examples/basic-math/vitest.config.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export default {
|
||||
test: {
|
||||
environment: 'node',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user