Skip to content

Commit

Permalink
chore: update all dependencies (#1044)
Browse files Browse the repository at this point in the history
fixes #1035
  • Loading branch information
usefulthink committed Oct 9, 2023
1 parent 9a5405f commit c5c0990
Show file tree
Hide file tree
Showing 13 changed files with 1,893 additions and 7,110 deletions.
2 changes: 1 addition & 1 deletion e2e/places/autocomplete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test("autocomplete should return correct result", async () => {
const r = await placeAutocomplete({ params: params });
expect(r.data.predictions.length).toBeTruthy();
expect(Object.keys(r.data.predictions[0]).sort()).toMatchInlineSnapshot(`
Array [
[
"description",
"matched_substrings",
"place_id",
Expand Down
2 changes: 1 addition & 1 deletion e2e/places/details.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test("details should return all fields", async () => {
expect(r.data.result.photos[0].width).toBeDefined();

expect(Object.keys(r.data.result).sort()).toMatchInlineSnapshot(`
Array [
[
"address_components",
"adr_address",
"business_status",
Expand Down
2 changes: 1 addition & 1 deletion e2e/places/placesnearby.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test("placesNearby should return correct result", async () => {
const r = await placesNearby({ params: params });
expect(r.data.results.length).toBeTruthy();
expect(Object.keys(r.data.results[0]).sort()).toMatchInlineSnapshot(`
Array [
[
"geometry",
"icon",
"icon_background_color",
Expand Down
2 changes: 1 addition & 1 deletion e2e/places/queryautocomplete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test("query autocomplete should return correct result", async () => {
expect(r.data.predictions.length).toBeTruthy();
expect(r.data.predictions[0].terms.length).toBeTruthy();
expect(Object.keys(r.data.predictions[0]).sort()).toMatchInlineSnapshot(`
Array [
[
"description",
"matched_substrings",
"place_id",
Expand Down
2 changes: 1 addition & 1 deletion e2e/places/textsearch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test("textsearch should return correct result", async () => {

expect(r.data.results.length).toBeTruthy();
expect(Object.keys(r.data.results[0]).sort()).toMatchInlineSnapshot(`
Array [
[
"formatted_address",
"geometry",
"icon",
Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
*/

module.exports = {
preset: "ts-jest",
roots: ["<rootDir>/src/", "<rootDir>/e2e/"],
preset: "ts-jest/presets/js-with-ts",
testEnvironment: "node",
// some dependencies are esm and need to be compiled to work in jest
transformIgnorePatterns: ['/node_modules/(?!(axios|retry-axios|query-string|decode-uri-component|split-on-first|filter-obj)/)'],
collectCoverage: true,
collectCoverageFrom: ["src/**/([a-zA-Z_]*).{js,ts}", "!**/*.test.{js,ts}"]
};
Loading

0 comments on commit c5c0990

Please sign in to comment.