Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #90 from onflow/max/js-test-for-kitti-items
Browse files Browse the repository at this point in the history
Create Javascript tests
  • Loading branch information
Maksim Daunarovich authored Jun 11, 2021
2 parents dec733f + 4c2b22c commit 7ac8189
Show file tree
Hide file tree
Showing 14 changed files with 18,831 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cadence/lib/js/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = false
max_line_length = 120
tab_width = 2
3 changes: 3 additions & 0 deletions cadence/lib/js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Kitty Items Test Suit
Tests here were created with [JS Testing Framework](https://github.com/onflow/flow-js-testing).
If you ever get stuck, follow the link to find documentation and examples on how to use said framework.
12 changes: 12 additions & 0 deletions cadence/lib/js/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
21 changes: 21 additions & 0 deletions cadence/lib/js/flow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"emulators": {
"default": {
"port": 3569,
"serviceAccount": "emulator-account"
}
},
"contracts": {},
"networks": {
"emulator": "127.0.0.1:3569",
"mainnet": "access.mainnet.nodes.onflow.org:9000",
"testnet": "access.devnet.nodes.onflow.org:9000"
},
"accounts": {
"emulator-account": {
"address": "f8d6e0586b0a20c7",
"keys": "8e3983030d2af1fa01c078241ad7f699d492e0239247f38d5a96cb959e436531"
}
},
"deployments": {}
}
5 changes: 5 additions & 0 deletions cadence/lib/js/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
testEnvironment: "node",
verbose: true,
coveragePathIgnorePatterns: ["/node_modules/"],
};
Loading

0 comments on commit 7ac8189

Please sign in to comment.