mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 19:32:35 +02:00
chore: enable eslint-plugin-jest (#6375)
This commit is contained in:
parent
3e5944ef1f
commit
52db7320a6
32 changed files with 194 additions and 193 deletions
|
@ -10,7 +10,7 @@ import path from 'path';
|
|||
import fs from 'fs-extra';
|
||||
|
||||
describe('migration test', () => {
|
||||
test('simple website', () => {
|
||||
test('simple website', async () => {
|
||||
const siteDir = path.join(
|
||||
__dirname,
|
||||
'__fixtures__',
|
||||
|
@ -18,10 +18,12 @@ describe('migration test', () => {
|
|||
'website',
|
||||
);
|
||||
const newDir = path.join(__dirname, '__fixtures__', 'migrated_simple_site');
|
||||
migrateDocusaurusProject(siteDir, newDir);
|
||||
await expect(
|
||||
migrateDocusaurusProject(siteDir, newDir),
|
||||
).resolves.toBeUndefined();
|
||||
fs.removeSync(newDir);
|
||||
});
|
||||
test('complex website', () => {
|
||||
test('complex website', async () => {
|
||||
const siteDir = path.join(
|
||||
__dirname,
|
||||
'__fixtures__',
|
||||
|
@ -33,11 +35,13 @@ describe('migration test', () => {
|
|||
'__fixtures__',
|
||||
'migrated_complex_site',
|
||||
);
|
||||
migrateDocusaurusProject(siteDir, newDir);
|
||||
await expect(
|
||||
migrateDocusaurusProject(siteDir, newDir),
|
||||
).resolves.toBeUndefined();
|
||||
fs.removeSync(newDir);
|
||||
});
|
||||
|
||||
test('missing versions', () => {
|
||||
test('missing versions', async () => {
|
||||
const siteDir = path.join(
|
||||
__dirname,
|
||||
'__fixtures__',
|
||||
|
@ -49,7 +53,9 @@ describe('migration test', () => {
|
|||
'__fixtures__',
|
||||
'migrated_missing_version_site',
|
||||
);
|
||||
migrateDocusaurusProject(siteDir, newDir);
|
||||
await expect(
|
||||
migrateDocusaurusProject(siteDir, newDir),
|
||||
).resolves.toBeUndefined();
|
||||
fs.removeSync(newDir);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue