Skip to content

Commit

Permalink
Node 12 test
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Jun 3, 2021
1 parent 8be5ee3 commit 071295f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/data/google-maps.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { readFile } from 'fs/promises';
import { promises as fs } from 'fs';

/** @type {import('./google-maps.json')} */
export let googleMaps;

export async function loadGoogleMapsData() {
const path = new URL('./google-maps.json', import.meta.url);
googleMaps = JSON.parse(await readFile(path, 'utf8'));
googleMaps = JSON.parse(await fs.readFile(path, 'utf8'));
return googleMaps;
}
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"include": ["./src/index.d.ts", "./src/**/*.js", "./test/**/*.js"],
"include": [
"./src/index.d.ts",
"./src/**/*.js",
"./test/**/*.js",
"./test/**/*.json"
],
"compilerOptions": {
"target": "es2018",
"module": "ES2020",
Expand Down

0 comments on commit 071295f

Please sign in to comment.