11import { QueryParameter , ExecutionState , ExecutionAPI , DuneClient } from "../../src" ;
22import log from "loglevel" ;
33import { QueryEngine } from "../../src/types/requestArgs" ;
4- import { BASIC_KEY , PLUS_KEY , expectAsyncThrow } from "./util" ;
4+ import { API_KEY , expectAsyncThrow } from "./util" ;
55import { sleep } from "../../src/utils" ;
66
77log . setLevel ( "silent" , true ) ;
@@ -15,7 +15,7 @@ describe("ExecutionAPI: native routes", () => {
1515 let simpleExecutionId : string ;
1616
1717 beforeAll ( async ( ) => {
18- client = new ExecutionAPI ( BASIC_KEY ) ;
18+ client = new ExecutionAPI ( API_KEY ) ;
1919 // https://dune.com/queries/1215383
2020 testQueryId = 1215383 ;
2121 // https://dune.com/queries/3463180
@@ -85,8 +85,8 @@ describe("ExecutionAPI: native routes", () => {
8585 expect ( execution . execution_id ) . not . toEqual ( null ) ;
8686 } ) ;
8787
88- it ( "executes with Large tier performance" , async ( ) => {
89- client = new ExecutionAPI ( PLUS_KEY ) ;
88+ it . skip ( "executes with Large tier performance" , async ( ) => {
89+ // Skipped: This test requires specific premium permissions
9090 const execution = await client . executeQuery ( testQueryId , {
9191 performance : QueryEngine . Large ,
9292 } ) ;
@@ -228,7 +228,7 @@ describe("ExecutionAPI: Errors", () => {
228228 let client : ExecutionAPI ;
229229
230230 beforeAll ( ( ) => {
231- client = new ExecutionAPI ( BASIC_KEY ) ;
231+ client = new ExecutionAPI ( API_KEY ) ;
232232 } ) ;
233233
234234 beforeEach ( ( done ) => {
@@ -276,7 +276,7 @@ describe("ExecutionAPI: Errors", () => {
276276
277277 it ( "returns error when query execution fails" , async ( ) => {
278278 // Use DuneClient to create a query with bad SQL, execute it, and check the error
279- const fullClient = new DuneClient ( PLUS_KEY ) ;
279+ const fullClient = new DuneClient ( API_KEY ) ;
280280
281281 // Create a query with intentionally bad SQL
282282 const queryId = await fullClient . query . createQuery ( {
@@ -286,13 +286,13 @@ describe("ExecutionAPI: Errors", () => {
286286 } ) ;
287287
288288 try {
289- // Execute the query - use fullClient.exec (with PLUS_KEY) since query is private
289+ // Execute the query
290290 const execution = await fullClient . exec . executeQuery ( queryId ) ;
291291
292292 // Wait a bit for it to fail
293293 await sleep ( 3 ) ;
294294
295- // Get the results - should have an error - use fullClient.exec (with PLUS_KEY)
295+ // Get the results - should have an error
296296 const result = await fullClient . exec . getExecutionResults ( execution . execution_id ) ;
297297
298298 // Verify error structure exists
0 commit comments