Skip to content

Commit f60130c

Browse files
committed
Added some unit tests. writing the rest soon.
1 parent 1c80967 commit f60130c

19 files changed

+5824
-0
lines changed

.gitignore

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
logs
2+
*.log
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
lerna-debug.log*
7+
.pnpm-debug.log*
8+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
lib-cov
14+
coverage
15+
*.lcov
16+
.nyc_output
17+
.grunt
18+
bower_components
19+
.lock-wscript
20+
build/Release
21+
node_modules/
22+
jspm_packages/
23+
web_modules/
24+
# TypeScript cache
25+
*.tsbuildinfo
26+
.npm
27+
.eslintcache
28+
.stylelintcache
29+
.node_repl_history
30+
*.tgz
31+
.yarn-integrity
32+
.env
33+
.env.development.local
34+
.env.test.local
35+
.env.production.local
36+
.env.local
37+
.cache
38+
.parcel-cache
39+
.next
40+
out
41+
.nuxt
42+
dist
43+
.cache/
44+
.vuepress/dist
45+
.temp
46+
.serverless/
47+
.fusebox/
48+
# DynamoDB Local files
49+
.dynamodb/
50+
.tern-port
51+
.vscode-test
52+
.yarn/cache
53+
.yarn/unplugged
54+
.yarn/build-state.yml
55+
.yarn/install-state.gz
56+
.pnp.*
57+
.webpack/
58+
# SvelteKit build / generate output
59+
.svelte-kit
60+
### react ###
61+
.DS_*
62+
**/*.backup.*
63+
**/*.back.*
64+
node_modules
65+
*.sublime*
66+
psd
67+
thumb
68+
sketch

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Chris Baughman
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

jest.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'jsdom',
4+
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
5+
moduleNameMapper: {
6+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
7+
},
8+
};

jest.setup.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom';

0 commit comments

Comments
 (0)