Skip to content

Commit

Permalink
setup tests for different platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Mar 10, 2024
1 parent ef8703f commit 93badd2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -4,7 +4,8 @@
"description": "The more powerful JavaScript logger for NodeJS and browsers.",
"main": "index.js",
"scripts": {
"test": "node test/test.js && LOGGER=info node test/test2.js && node test/test3.js && LOGGER=info node test/test4.js && LOGGER=info node test/test_stream.js"
"test": "./test/test_main.sh",
"test-windows": "powershell -File test/test_main.ps1"
},
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions test/test_main.ps1
@@ -0,0 +1,11 @@
node test\test.js

$env:LOGGER = "info"
node test\test2.js

node test\test3.js

$env:LOGGER = "info"
node test\test4.js

node test\test_stream.js
11 changes: 11 additions & 0 deletions test/test_main.sh
@@ -0,0 +1,11 @@
#!/usr/bin/bash

node test/test.js

LOGGER=info node test/test2.js

node test/test3.js

LOGGER=info node test/test4.js

node test/test_stream.js

0 comments on commit 93badd2

Please sign in to comment.