diff --git a/test/parser.test.ts b/test/parser.test.ts new file mode 100644 index 0000000..6e63f73 --- /dev/null +++ b/test/parser.test.ts @@ -0,0 +1,18 @@ +import { describe, expect, it } from 'vitest' +import { matter } from '@md-report/parser' + +const source = `--- +aaa: bbb +ccc: 111 +ddd: true +---` + +describe('frontmatter', () => { + it('get frontmatter', () => { + expect(matter(source).data).toEqual({ + aaa: 'bbb', + ccc: 111, + ddd: true, + }) + }) +}) diff --git a/test/index.md b/test/static/index.md similarity index 100% rename from test/index.md rename to test/static/index.md