Browse Source

set up unit testing

master
Stephanie Gredell 3 weeks ago
parent
commit
9b9626a755
  1. 1
      .gitignore
  2. 5
      jest.config.js
  3. 10
      jsconfig.json
  4. 4421
      package-lock.json
  5. 13
      package.json

1
.gitignore vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
node_modules

5
jest.config.js

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
export default {
testEnvironment: 'node',
transform: {},
};

10
jsconfig.json

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "node",
"target": "ESNext",
"types": ["jest"]
},
"exclude": ["node_modules"]
}

4421
package-lock.json generated

File diff suppressed because it is too large Load Diff

13
package.json

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
{
"name": "lemonade",
"version": "1.0.0",
"description": "A lemonade stand game",
"type": "module",
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"jest": "^30.2.0"
}
}
Loading…
Cancel
Save