-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Today our testing is basically comparing 2 JSON files.
Example:
const expected = JSON.parse(fs.readFileSync(`./testdata/dashboards/${dashboard}.json`, { encoding: 'utf8', flag: 'r' }));
const actual = JSON.parse(fs.readFileSync(`./build/dashboards/${dashboard}.json`, { encoding: 'utf8', flag: 'r' }));
expect(actual).toMatchObject(expected);
Where this is convenient for an MVP it will be great if we actually start testing with code if a given panel has the expected configuration.
Let's write some testing code only for the General dashboard in this ticket.
Metadata
Metadata
Assignees
Labels
No labels