Skip to content

Commit

Permalink
chore: Update test fixture again
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Jun 18, 2024
1 parent c5eee2d commit 452b1c0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 21 deletions.
12 changes: 6 additions & 6 deletions integration/__tests__/kitchen-sink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ describe.sequential('mode: sequential', () => {
await cleanup()
})

it('should run Verdaccio on first run', () => {
const [exitCode, logs] = cli(['--scan-once'], { verbose: true })
it('should run Verdaccio with --force-verdaccio', () => {
const [exitCode, logs] = cli(['--scan-once', '--force-verdaccio'], { verbose: true })

logs.should.contain('[log] [Verdaccio] Starting server...')
logs.should.contain('[log] [Verdaccio] Started successfully!')
logs.should.contain('[log] Publishing `say-hello-world-secco@1.0.0-secco-')
logs.should.contain('[log] Published `say-hello-world-secco@1.0.0-secco-')
logs.should.contain('[log] Publishing `say-hello-world@0.0.2-secco-')
logs.should.contain('[log] Published `say-hello-world@0.0.2-secco-')
logs.should.contain('[log] Installing packages from local registry:')
logs.should.contain('[success] Installation finished successfully!')

Expand Down Expand Up @@ -52,8 +52,8 @@ describe.sequential('mode: sequential', () => {

logs.should.not.contain('[log] [Verdaccio] Starting server...')
logs.should.not.contain('[success] Installation finished successfully!')
logs.should.contain('[log] Copied `index.mjs` to `node_modules/say-hello-world-secco/index.mjs`')
logs.should.contain('[log] Copied `package.json` to `node_modules/say-hello-world-secco/package.json`')
logs.should.contain('[log] Copied `index.mjs` to `node_modules/say-hello-world/index.mjs`')
logs.should.contain('[log] Copied `package.json` to `node_modules/say-hello-world/package.json`')
logs.should.contain('[info] Copied 2 files. Exiting...')

expect(exitCode).toBe(0)
Expand Down
2 changes: 1 addition & 1 deletion integration/fixtures/kitchen-sink/destination/bin.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sayHelloWorld } from 'say-hello-world-secco'
import { sayHelloWorld } from 'say-hello-world'

function run() {
sayHelloWorld()
Expand Down
2 changes: 1 addition & 1 deletion integration/fixtures/kitchen-sink/destination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"start": "node bin.mjs"
},
"dependencies": {
"say-hello-world-secco": "^1.0.0"
"say-hello-world": "^0.0.2"
}
}
4 changes: 2 additions & 2 deletions integration/fixtures/kitchen-sink/source/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "say-hello-world-secco",
"version": "1.0.0",
"name": "say-hello-world",
"version": "0.0.2",
"packageManager": "npm@10.5.0",
"main": "index.mjs"
}
9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,6 @@
"typescript": "^5.4.5",
"vitest": "^1.5.3"
},
"pnpm": {
"packageExtensions": {
"destination": {
"optionalDependencies": {
"say-hello-world-secco": "^1.0.0"
}
}
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 452b1c0

Please sign in to comment.