mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
308b5d8c12
commit
174ce25f61
2 changed files with 7 additions and 6 deletions
|
@ -1,12 +1,12 @@
|
|||
import { readFile } from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
import { readFile } from "node:fs/promises"
|
||||
import {
|
||||
TSConfckParseError,
|
||||
type TSConfckParseOptions,
|
||||
type TSConfckParseResult,
|
||||
find,
|
||||
parse,
|
||||
toJson
|
||||
toJson,
|
||||
} from 'tsconfck';
|
||||
import type { CompilerOptions, TypeAcquisition } from 'typescript';
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import * as path from 'node:path';
|
||||
import { describe, it } from 'node:test';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { loadTSConfig, updateTSConfigForFramework } from '../../../dist/core/config/index.js';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { toJson } from 'tsconfck';
|
||||
import { loadTSConfig, updateTSConfigForFramework } from '../../../dist/core/config/index.js';
|
||||
|
||||
const cwd = fileURLToPath(new URL('../../fixtures/tsconfig-handling/', import.meta.url));
|
||||
|
||||
|
@ -42,8 +42,9 @@ describe('TSConfig handling', () => {
|
|||
|
||||
it('does not change baseUrl in raw config', async () => {
|
||||
const loadedConfig = await loadTSConfig(path.join(cwd, 'baseUrl'));
|
||||
const rawConfig = await readFile(path.join(cwd, 'baseUrl', 'tsconfig.json'), 'utf-8').then(toJson)
|
||||
.then((content) => JSON.parse(content));
|
||||
const rawConfig = await readFile(path.join(cwd, 'baseUrl', 'tsconfig.json'), 'utf-8')
|
||||
.then(toJson)
|
||||
.then((content) => JSON.parse(content));
|
||||
|
||||
assert.deepEqual(loadedConfig.rawConfig, rawConfig);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue