Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 8269ee8

Browse files
committed
fix codacy stuff
1 parent 09cfdeb commit 8269ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/serverless-components/aws-sqs/test-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import * as path from "path";
33
import * as os from "os";
44
import AwsSqsQueue from "./serverless"; // FIXME: loses coverage but for some reason jest doesn't work from root if importing from component.ts
55

6-
const createTmpDir = () => {
6+
const createTmpDir = (): Promise<string> => {
77
return fse.mkdtemp(path.join(os.tmpdir(), "test-aws-sqs-"));
88
};
99

10-
const createComponent = async (url?: string) => {
10+
const createComponent = async (url?: string): Promise<AwsSqsQueue> => {
1111
// create tmp folder to avoid state collisions between tests
1212
const tmpStateFolder = (initialState?: { url: string }) => {
1313
const dir = fse.mkdtempSync(path.join(os.tmpdir(), "test-aws-sqs-"));

0 commit comments

Comments
 (0)