This website works better with JavaScript.
Home
Help
Register
Sign In
ashpie
/
ily.li
Watch
1
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
9
Wiki
Activity
Browse Source
Add tests
master
Alice Gaudon
12 months ago
parent
48b82c000c
commit
a6c2f91ab9
3 changed files
with
20 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-0
jest.config.js
+1
-0
package.json
+5
-0
test/ExampleApp.test.ts
+ 14
- 0
jest.config.js
View File
@ -0,0 +1,14 @@
module
.
exports
=
{
transform
:
{
"^.+\\.ts$"
:
"ts-jest"
}
,
moduleFileExtensions
:
[
'js'
,
'ts'
,
'd.ts'
]
,
testMatch
:
[
'**/test/**/*.test.ts'
]
,
testEnvironment
:
'node'
}
;
+ 1
- 0
package.json
View File
@ -18,6 +18,7 @@
"@babel/preset-env"
:
"^7.9.5"
,
"@types/config"
:
"^0.0.36"
,
"@types/express"
:
"^4.17.6"
,
"@types/jest"
:
"^25.2.1"
,
"@types/node"
:
"^13.13.2"
,
"babel-loader"
:
"^8.1.0"
,
"concurrently"
:
"^5.1.0"
,
+ 5
- 0
test/ExampleApp.test.ts
View File
@ -0,0 +1,5 @@
describe
(
'Write your tests'
,
(
)
=
>
{
test
(
'Remove this when you have some tests'
,
(
)
=
>
{
expect
(
false
)
.
toBe
(
true
)
;
}
)
;
}
)
;
Write
Preview
Loading…
Cancel
Save