Skip to content

Commit

Permalink
Fixed CI unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Aug 23, 2024
1 parent d165368 commit 231ebb4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
*.zip
*.tgz
.env
.DS_Store
4 changes: 3 additions & 1 deletion bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
"stagingDir": "./dist",
"emitDefinitions": true,
"sourceMap": true,
"autoImportComponentScript": true
"autoImportComponentScript": true,
"retainStagingDir": true,
"createPackage": false
}
1 change: 1 addition & 0 deletions bsconfig.tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"stagingDir": "./dist",
"extends": "./bsconfig.json",
"retainStagingDir": true,
"createPackage": false,
"files": [
"**/*"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "A Promise-like implementation for BrightScript/Roku",
"scripts": {
"preversion": "npm run build && npm run prepare-releases",
"build": "bsc --create-package=false",
"build": "bsc",
"build-tests": "bsc --project bsconfig.tests.json",
"test": "npm run build-tests && npx ts-node ./scripts/runUnitTestsOnDevice.ts",
"prepare-releases": "npx ts-node ./scripts/prepare-releases.ts"
Expand Down
1 change: 1 addition & 0 deletions scripts/runUnitTestsOnDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export class UnitTestRunner {
let result = await rokuDeploy.deploy({
host: this.host,
password: this.devicePassword,
stagingDir: `${process.cwd()}/out/.roku-deploy-staging`,
rootDir: `${process.cwd()}/dist/`,
files: [
'**/*'
Expand Down

0 comments on commit 231ebb4

Please sign in to comment.