Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 197f3d0

Browse files
Craig DoremusCraig Doremus
authored andcommitted
test: Move dependencies into import_map.json
1 parent 59c4a69 commit 197f3d0

File tree

9 files changed

+13
-19
lines changed

9 files changed

+13
-19
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ALEPH_DEV=true deno run -A --unstable --location=http://localhost cli.ts start .
3131
ALEPH_DEV=true deno run -A --unstable --location=http://localhost cli.ts build ./examples/hello-world -L debug
3232

3333
# run all tests
34-
deno test -A --unstable --location=http://localhost
34+
deno test -A --unstable --location=http://localhost --import-map=./import_map.json
3535
```
3636

3737
## Project Structure

deps.test.ts

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

framework/core/routing_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from '../../deps.test.ts'
1+
import { assertEquals } from 'std/testing/asserts.ts'
22
import { Routing } from './routing.ts'
33

44
Deno.test(`routing`, () => {

import_map.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"imports": {
3+
"std/": "https://deno.land/[email protected]/",
4+
"brotli": "https://deno.land/x/[email protected]/mod.ts",
5+
"gzip": "https://deno.land/x/[email protected]/mod.ts",
6+
"aleph": "https://deno.land/x/[email protected]/mod.ts",
37
"aleph/": "https://deno.land/x/[email protected]/",
4-
"framework": "https://deno.land/x/[email protected]/framework/core/mod.ts",
5-
"framework/react": "https://deno.land/x/[email protected]/framework/react/mod.ts",
68
"react": "https://esm.sh/[email protected]",
79
"react-dom": "https://esm.sh/[email protected]"
810
}

plugins/markdown_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from '../deps.test.ts'
1+
import { assertEquals } from 'std/testing/asserts.ts'
22
import markdownLoader from './markdown.ts'
33

44
Deno.test('markdown loader', async () => {

server/css_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from '../deps.test.ts'
1+
import { assertEquals } from 'std/testing/asserts.ts'
22
import { CSSProcessor } from './css.ts'
33

44
Deno.test('css processor', async () => {

server/helper_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from '../deps.test.ts'
1+
import { assertEquals } from 'std/testing/asserts.ts'
22
import { toLocalUrl } from './helper.ts'
33

44
Deno.test(`server/helper`, async () => {

shared/fs_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assert, assertEquals, assertThrows, assertNotEquals
3-
} from '../deps.test.ts'
4-
import { SEP } from '../deps.test.ts'
3+
} from 'std/testing/asserts.ts'
4+
import { SEP } from 'std/path/separator.ts'
55
import {
66
existsDir, existsDirSync, existsFile, existsFileSync,
77
ensureTextFile, lazyRemove

shared/util_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from '../deps.test.ts'
2-
import { delay } from '../deps.test.ts'
1+
import { assertEquals } from 'std/testing/asserts.ts'
2+
import { delay } from 'std/async/delay.ts'
33
import util from './util.ts'
44

55
Deno.test(`util`, async () => {

0 commit comments

Comments
 (0)