Skip to content

Commit

Permalink
Make test fixtures self-contained
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 18, 2024
1 parent 705cc15 commit 47f000d
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install -g bare-runtime bare-dev
- run: npm install -g bare-dev
- run: bare-dev configure --debug --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}
- run: bare-dev build --debug
- run: bare-dev test --debug
2 changes: 0 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ list(APPEND tests
timeout-clear.js
)

add_subdirectory(fixtures)

foreach(file IN LISTS tests)
get_filename_component(name ${file} NAME_WE)

Expand Down
16 changes: 0 additions & 16 deletions test/fixtures/CMakeLists.txt

This file was deleted.

1 change: 1 addition & 0 deletions test/fixtures/addon/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!prebuilds
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/bundle/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!*.bundle
16 changes: 0 additions & 16 deletions test/fixtures/bundle/CMakeLists.txt

This file was deleted.

25 changes: 25 additions & 0 deletions test/fixtures/bundle/mod.bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
291
{
"version": 0,
"main": "/mod.js",
"imports": {},
"resolutions": {
"/mod.js": {
"bare:package": "/package.json"
}
},
"files": {
"/mod.js": {
"offset": 0,
"length": 37
},
"/package.json": {
"offset": 37,
"length": 23
}
}
}
module.exports = 'Hello from bundle'
{
"name": "bundle"
}
2 changes: 1 addition & 1 deletion test/fixtures/bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "bundle"
"name": "bundle"
}

0 comments on commit 47f000d

Please sign in to comment.