Skip to content

Commit 4325968

Browse files
committed
test: fixing unit tests in vitest
1 parent 2147c57 commit 4325968

File tree

150 files changed

+909
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+909
-298
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ generate-protocol-tests:
1717
yarn
1818

1919
test-protocols:
20-
(cd ./private/smithy-rpcv2-cbor && npx vitest run --globals)
20+
(cd ./private/smithy-rpcv2-cbor && npx vitest run --globals)
21+
22+
turbo-clean:
23+
@read -p "Are you sure you want to delete your local cache? [y/N]: " ans && [ $${ans:-N} = y ]
24+
@echo "\nDeleted cache folders: \n--------"
25+
@find . -name '.turbo' -type d -prune -print -exec rm -rf '{}' + && echo '\n'

jest.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"extract:docs": "mkdir -p api-extractor-packages && turbo run extract:docs",
2121
"release": "yarn changeset publish",
2222
"build-test-packages": "./gradlew clean build && node ./scripts/build-generated-test-packages",
23-
"g:jest": "cd $INIT_CWD && jest",
2423
"g:tsc": "cd $INIT_CWD && tsc",
2524
"g:vitest": "cd $INIT_CWD && vitest"
2625
},

packages/abort-controller/src/AbortController.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect,test as it } from "vitest";
1+
import { describe, expect, test as it } from "vitest";
22

33
import { AbortController } from "./AbortController";
44
import { AbortSignal } from "./AbortSignal";

packages/abort-controller/src/AbortSignal.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect,test as it, vi } from "vitest";
1+
import { describe, expect, test as it, vi } from "vitest";
22

33
import { AbortController } from "./AbortController";
44

packages/chunked-blob-reader-native/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect,test as it } from "vitest";
1+
import { describe, expect, test as it } from "vitest";
22

33
import { blobReader } from "./index";
44

packages/chunked-blob-reader/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Blob as BlobPolyfill } from "buffer";
2-
import { describe, expect,test as it } from "vitest";
2+
import { describe, expect, test as it } from "vitest";
33

44
import { blobReader } from "./index";
55

packages/core/src/normalizeProvider.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect,test as it } from "vitest";
1+
import { describe, expect, test as it } from "vitest";
22

33
import { normalizeProvider } from "./normalizeProvider";
44

packages/core/src/pagination/createPaginator.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PaginationConfiguration } from "@smithy/types";
2-
import { describe, expect,test as it } from "vitest";
2+
import { describe, expect, test as it } from "vitest";
33

44
import { createPaginator } from "./createPaginator";
55

packages/core/src/setFeature.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HandlerExecutionContext } from "@smithy/types";
2-
import { describe, expect,test as it } from "vitest";
2+
import { describe, expect, test as it } from "vitest";
33

44
import { setFeature } from "./setFeature";
55

0 commit comments

Comments
 (0)