mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
chore: fix tests and build
This commit is contained in:
parent
64c9a1e23a
commit
2000f523d1
10 changed files with 560 additions and 15 deletions
|
@ -24,14 +24,14 @@
|
|||
},
|
||||
"files": ["dist"],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|
||||
"test": "astro-scripts test \"test/**/*.test.js\"",
|
||||
"test-fn": "astro-scripts test \"test/functions/*.test.js\"",
|
||||
"test-static": "astro-scripts test \"test/static/*.test.js\"",
|
||||
"test": "pnpm run test-fn && pnpm run test-static",
|
||||
"test:hosted": "astro-scripts test \"test/hosted/*.test.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/internal-helpers": "0.4.2",
|
||||
"@astrojs/internal-helpers": "0.5.1",
|
||||
"@astrojs/underscore-redirects": "^0.6.0",
|
||||
"@netlify/functions": "^2.8.0",
|
||||
"@vercel/nft": "^0.29.0",
|
||||
|
@ -42,7 +42,6 @@
|
|||
"astro": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/test-utils": "workspace:*",
|
||||
"@netlify/edge-functions": "^2.11.1",
|
||||
"@netlify/edge-handler-types": "^0.34.1",
|
||||
"@types/node": "^22.10.6",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { before, describe, it } from 'node:test';
|
||||
import { loadFixture } from '@astrojs/test-utils';
|
||||
import { loadFixture } from '../../../../astro/test/test-utils.js';
|
||||
|
||||
describe(
|
||||
'Cookies',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { after, before, describe, it } from 'node:test';
|
||||
import { loadFixture } from '@astrojs/test-utils';
|
||||
import { loadFixture } from '../../../../astro/test/test-utils.js';
|
||||
|
||||
describe(
|
||||
'Middleware',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { after, before, describe, it } from 'node:test';
|
||||
import { remotePatternToRegex } from '@astrojs/netlify';
|
||||
import { loadFixture } from '@astrojs/test-utils';
|
||||
import { loadFixture } from '../../../../astro/test/test-utils.js';
|
||||
|
||||
describe(
|
||||
'Image CDN',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { createServer } from 'node:http';
|
||||
import { before, describe, it } from 'node:test';
|
||||
import { loadFixture } from '@astrojs/test-utils';
|
||||
import { loadFixture } from '../../../../astro/test/test-utils.js';
|
||||
|
||||
describe(
|
||||
'SSR - Redirects',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { before, describe, it } from 'node:test';
|
||||
import { describe, it } from 'node:test';
|
||||
|
||||
const NETLIFY_TEST_URL = 'https://curious-boba-495d6d.netlify.app';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { before, describe, it } from 'node:test';
|
||||
import { loadFixture } from '@astrojs/test-utils';
|
||||
import { loadFixture } from '../../../../astro/test/test-utils.js';
|
||||
|
||||
describe('SSG - headers', () => {
|
||||
let fixture;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import * as assert from 'node:assert/strict';
|
||||
import { before, describe, it } from 'node:test';
|
||||
import { loadFixture } from '@astrojs/test-utils';
|
||||
import { loadFixture } from '../../../../astro/test/test-utils.js';
|
||||
|
||||
describe('SSG - Redirects', () => {
|
||||
let fixture;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist"
|
||||
|
|
552
pnpm-lock.yaml
generated
552
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue