diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 469ff7c72f..9c12a667d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,6 @@ jobs: { name: 'graphql', path: 'src/graphql/tests', }, { name: 'landings', path: 'src/landings/tests', }, { name: 'linting', path: 'src/content-linter/tests', }, - { name: 'meta', path: 'tests/meta', }, { name: 'observability', path: 'src/observability/tests' }, { name: 'pageinfo', path: 'src/pageinfo/tests', }, { name: 'rendering', path: 'tests/rendering', }, diff --git a/tests/meta/orphan-tests.js b/tests/meta/orphan-tests.js deleted file mode 100644 index 6be4dc4ee6..0000000000 --- a/tests/meta/orphan-tests.js +++ /dev/null @@ -1,21 +0,0 @@ -import { statSync } from 'fs' -import fs from 'fs/promises' -import path from 'path' - -describe('check for orphan tests', () => { - test('all tests are in sub-directories', async () => { - // A known list of exceptions that can live outside of directories - const EXCEPTIONS = ['README.md', 'package.json', 'utils.js', '.DS_Store', 'PLAYWRIGHT.md'] - const pathToTests = 'tests' - - // Get a list of files/directories in `/tests` - const testDirectory = await fs.readdir(pathToTests) - - // Filter out our exceptions and directories - const filteredList = testDirectory - .filter((item) => !EXCEPTIONS.includes(item)) - .filter((item) => !statSync(path.join(pathToTests, item)).isDirectory()) - - expect(filteredList).toHaveLength(0) - }) -})