Skip to content

Commit

Permalink
TS run sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Feb 1, 2024
1 parent 175576d commit 84bc4ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ jobs:
run: npm run lint

- name: Run Tests
run: npm test
run: |
npm run build:contracts
npm test
4 changes: 2 additions & 2 deletions ts-lib/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
preset: "ts-jest",
testEnvironment: "node",
testTimeout: 30000,
};
1 change: 1 addition & 0 deletions ts-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "The smart contract exposes two methods to enable storing and retrieving an encrypted (key, value)",
"main": "index.ts",
"scripts": {
"build:contracts": "cd .. && cargo build --target wasm32-unknown-unknown",
"test": "jest",
"lint": "eslint && prettier --check .",
"lint:fix": "eslint && prettier --write ."
Expand Down
3 changes: 1 addition & 2 deletions ts-lib/tests/local.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Worker, NearAccount } from "near-workspaces";

// TODO - This requires contract wasm file (i.e. must run cargo build)
describe.skip("EthKeys contract tests", () => {
describe("EthKeys contract tests", () => {
let worker: Worker;
let user: NearAccount;
let contract: NearAccount;
Expand Down

0 comments on commit 84bc4ba

Please sign in to comment.