mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 21:03:24 -05:00
refactor: migrate challenge parser tests to vitest (#62186)
This commit is contained in:
committed by
GitHub
parent
2590c1c820
commit
28411a2cec
@@ -1,8 +1,10 @@
|
||||
const unified = require('unified');
|
||||
const remark = require('remark-parse');
|
||||
const frontmatter = require('remark-frontmatter');
|
||||
const addFrontmatter = require('./add-frontmatter');
|
||||
const validateSections = require('./validate-sections');
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import unified from 'unified';
|
||||
import remark from 'remark-parse';
|
||||
import frontmatter from 'remark-frontmatter';
|
||||
|
||||
import addFrontmatter from './add-frontmatter';
|
||||
import validateSections from './validate-sections';
|
||||
|
||||
const processor = unified()
|
||||
.use(remark)
|
||||
|
||||
Reference in New Issue
Block a user