refactor: migrate challenge parser tests to vitest (#62186)

This commit is contained in:
Oliver Eyton-Williams
2025-09-12 18:50:02 +02:00
committed by GitHub
parent 2590c1c820
commit 28411a2cec
36 changed files with 257 additions and 288 deletions

View File

@@ -1,9 +1,10 @@
const isArray = require('lodash/isArray');
const { root } = require('mdast-builder');
const find = require('unist-util-find');
import { describe, beforeAll, it, expect } from 'vitest';
import isArray from 'lodash/isArray';
import { root } from 'mdast-builder';
import find from 'unist-util-find';
const parseFixture = require('../../__fixtures__/parse-fixture');
const { getSection } = require('./get-section');
import parseFixture from '../../__fixtures__/parse-fixture';
import { getSection } from './get-section';
describe('getSection', () => {
let simpleAst, extraHeadingAst;