mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-25 14:07:50 +02:00
test: enable a few jest eslint rules (#6900)
* test: enable a few jest eslint rules * more
This commit is contained in:
parent
1efc6c6091
commit
aa5a2d4c04
155 changed files with 3644 additions and 3478 deletions
|
@ -26,12 +26,12 @@ async function getPackagesJsonFiles(): Promise<PackageJsonFile[]> {
|
|||
}
|
||||
|
||||
describe('packages', () => {
|
||||
test('should be found', async () => {
|
||||
it('are found', async () => {
|
||||
const packageJsonFiles = await getPackagesJsonFiles();
|
||||
expect(packageJsonFiles.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test('should contain repository and directory for every package', async () => {
|
||||
it('contain repository and directory', async () => {
|
||||
const packageJsonFiles = await getPackagesJsonFiles();
|
||||
|
||||
packageJsonFiles
|
||||
|
@ -51,7 +51,7 @@ describe('packages', () => {
|
|||
This will make you publish an incomplete list of Docusaurus packages
|
||||
when trying to release with lerna-publish
|
||||
*/
|
||||
test('should have publishConfig.access: "public" when name starts with @', async () => {
|
||||
it('have publishConfig.access: "public" when name starts with @', async () => {
|
||||
const packageJsonFiles = await getPackagesJsonFiles();
|
||||
|
||||
packageJsonFiles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue