Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

TestDriver failing to be recognized

Topic Labels: Custom Extensions
841 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Alec_Kerr
4 - Data Explorer
4 - Data Explorer

Hey Everyone,

I am trying to understand why is TestDriver returning a “is not a constructor” error. Here is a snippet of the code.

import React from 'react';
import TestDriver from '@airtable/blocks-testing';
import roninRecord from '../tableSample/RoninAccount';

import {
    getRoninAddress,

} from '../frontend/Helper Functions/airtable/func';


describe("Get Ronin Address",()=>{
        let testDriver = new TestDriver(roninRecord);
        it("Should return a list of all ronin addresses",async ()=>{
                     expect(0).toBe(0);
        });
    });

I can confirm I have installed the packages. Unsure what could be the issue. I appreciate any advice :pray:

0 Replies 0