Skip to content

Commit

Permalink
fix(api-headless-cms-import-export): set larger timeout on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric committed Oct 4, 2024
1 parent b074594 commit af86a59
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ export const createMappingsSnapshot = () => {
return {
mappings: {
dynamic_templates: [
{
ids: {
match: "^id|entryId$",
mapping: {
type: "string",
keyword: true
}
}
},
{
dates: {
match: "^createdOn|savedOn|publishedOn$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
import { categoryModel } from "~tests/helpers/models";
import { NonEmptyArray } from "@webiny/api/types";

jest.setTimeout(60000);

describe("import from url controller", () => {
let context: Context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { GenericRecord } from "@webiny/api/types";
const cloudfrontUrl = "https://d1zqvydzhnfn89.cloudfront.net";

describe("match key or alias", () => {
beforeEach(() => {
process.env.DEBUG = "true";
});

it("should log an error when given an invalid URL", () => {
const errors: any[] = [];
console.error = (...args: any[]) => {
Expand Down

0 comments on commit af86a59

Please sign in to comment.