Skip to content

Commit

Permalink
fix: anchor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Oct 14, 2024
1 parent e35406d commit 71b757a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion anchor/tests/counter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as anchor from '@coral-xyz/anchor'
import {Program} from '@coral-xyz/anchor'
import {Keypair} from '@solana/web3.js'
import {Counter} from '../target/types/counter'
import '@types/jest';

describe('counter', () => {
// Configure the client to use the local cluster.
Expand Down
12 changes: 1 addition & 11 deletions anchor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"types": ["jest", "node"],
"typeRoots": ["./node_modules/@types"],
"lib": ["es2015"],
"target": "es6",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
}
"extends": "../tsconfig.json"
}
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"types": ["jest"],
"types": ["jest", "node"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -10,6 +10,7 @@
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
Expand All @@ -24,6 +25,6 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.spec.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 71b757a

Please sign in to comment.