function testShouldUseFlatConfig(
			expectedValueWithConfig,
			expectedValueWithoutConfig,
		) {
			describe("when there is a flat config file present", () => {
				const originalCwd = process.cwd();

				beforeEach(() => {
					process.chdir(__dirname);
				});

				afterEach(() => {
					process.chdir(originalCwd);
				});

				it(`is \`${expectedValueWithConfig}\``, async () => {
					assert.strictEqual(
						await shouldUseFlatConfig(),
						expectedValueWithConfig,
					);
				});
			});

			describe("when there is no flat config file present", () => {
				const originalCwd = process.cwd();

				beforeEach(() => {
					process.chdir(os.tmpdir());
				});

				afterEach(() => {
					process.chdir(originalCwd);
				});

				it(`is \`${expectedValueWithoutConfig}\``, async () => {
					assert.strictEqual(
						await shouldUseFlatConfig(),
						expectedValueWithoutConfig,
					);
				});
			});
		}
Check that `shouldUseFlatConfig` returns the expected value from a CWD
with a flat config and one without a flat config.
@param {boolean} expectedValueWithConfig the expected return value of
`shouldUseFlatConfig` when in a directory with a flat config present
@param {boolean} expectedValueWithoutConfig the expected return value of
`shouldUseFlatConfig` when in a directory without any flat config present
@returns {void}