This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
184 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const path = require('path') | ||
const tape = require('tape') | ||
|
||
const { Diorama, tapeExecutor, backwardCompatibilityMiddleware } = require('@holochain/diorama') | ||
|
||
process.on('unhandledRejection', error => { | ||
// Will print "unhandledRejection err is not defined" | ||
console.error('got unhandledRejection:', error); | ||
}); | ||
|
||
const dnaPath = path.join(__dirname, "../dist/app_spec.dna.json") | ||
const dna = Diorama.dna(dnaPath, 'app-spec') | ||
|
||
const diorama = new Diorama({ | ||
instances: { | ||
alice: dna, | ||
bob: dna, | ||
carol: dna, | ||
}, | ||
bridges: [ | ||
Diorama.bridge('test-bridge', 'alice', 'bob') | ||
], | ||
debugLog: false, | ||
executor: tapeExecutor(require('tape')), | ||
middleware: backwardCompatibilityMiddleware, | ||
}) | ||
|
||
require('./test')(diorama.registerScenario) | ||
require('./regressions')(diorama.registerScenario) | ||
|
||
diorama.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
if [ -z $1]; | ||
then tape test.js regressions.js | tee test.out~ | faucet || ( cat test.out~; false ); | ||
else tape $1; | ||
then node index.js | tee test.out~ | faucet || ( cat test.out~; false ); | ||
else node $1; | ||
fi; |
Oops, something went wrong.