mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-07 18:03:49 -05:00
refactor: migrate challenge parser tests to vitest (#62186)
This commit is contained in:
committed by
GitHub
parent
2590c1c820
commit
28411a2cec
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user