Skip to content

Commit

Permalink
fix(ci): Fix flaky ete-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney committed Dec 12, 2024
1 parent e7568a1 commit 58570af
Show file tree
Hide file tree
Showing 26 changed files with 167 additions and 9,734 deletions.
3 changes: 3 additions & 0 deletions packages/cli/ete-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@
"@fern-api/logging-execa": "workspace:*",
"@fern-typescript/fetcher": "workspace:*",
"execa": "^5.1.1",
"express": "^4.20.0",
"js-yaml": "^4.1.0",
"node-fetch": "2.7.0",
"openapi-types": "^12.1.3",
"strip-ansi": "^7.1.0",
"tmp-promise": "^3.0.3"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/js-yaml": "^4.0.8",
"@types/node": "18.7.18",
Expand Down
8 changes: 5 additions & 3 deletions packages/cli/ete-tests/src/tests/generate/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import stripAnsi from "strip-ansi";
import { runFernCli } from "../../utils/runFernCli";
import { init } from "../init/init";
import { exec } from "child_process";
import { CONSOLE_LOGGER } from "../../../../task-context/node_modules/@fern-api/logger/src";

const fixturesDir = join(AbsoluteFilePath.of(__dirname), RelativeFilePath.of("fixtures"));
// const FIXTURES = ["docs"];

describe("fern generate", () => {
it("default api (fern init)", async () => {
Expand Down Expand Up @@ -50,7 +48,11 @@ describe("fern generate", () => {
);
}, 180_000);

it("missing docs page", async () => {
// TODO: Re-enable this test if and when it doesn't require the user to be logged in.
// It's otherwise flaky on developer machines that haven't logged in with the fern CLI.
//
// eslint-disable-next-line jest/no-disabled-tests
it.skip("missing docs page", async () => {
const { stdout } = await runFernCli(["generate", "--docs"], {
cwd: join(fixturesDir, RelativeFilePath.of("docs-missing-page")),
reject: false
Expand Down
Loading

0 comments on commit 58570af

Please sign in to comment.