Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add local gh reporter #46

Closed
wants to merge 11 commits into from
Closed
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,39 +43,40 @@
"version": "npm run build",
"prepublishOnly": "npm run build",
"release": "release-it",
"quick:test": "node --import=ts-node-maintained/register/esm bin/test.ts"
"quick:test": "node --import=ts-node-maintained/register/esm --enable-source-maps bin/test.ts"
},
"devDependencies": {
"@adonisjs/eslint-config": "^2.0.0-beta.6",
"@adonisjs/logger": "^6.0.5",
"@adonisjs/prettier-config": "^1.4.0",
"@adonisjs/tsconfig": "^1.4.0",
"@japa/assert": "^4.0.0",
"@japa/expect-type": "^2.0.2",
"@japa/runner": "^3.1.4",
"@release-it/conventional-changelog": "^9.0.4",
"@japa/assert": "^4.0.1",
"@japa/expect-type": "^2.0.3",
"@japa/runner": "^4.1.0",
"@release-it/conventional-changelog": "^10.0.0",
"@swc/core": "^1.10.4",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"c8": "^10.1.3",
"eslint": "^9.17.0",
"fs-extra": "^11.2.0",
"lodash": "^4.17.21",
"lodash-cli": "^4.17.5",
"move-file-cli": "^3.0.0",
"prettier": "^3.4.2",
"release-it": "^17.11.0",
"release-it": "^18.1.1",
"ts-node-maintained": "^10.9.4",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
},
"dependencies": {
"@poppinss/exception": "^1.2.0",
"@poppinss/object-builder": "^1.1.0",
"@poppinss/string": "^1.1.0",
"@poppinss/string": "^1.2.0",
"flattie": "^1.1.1",
"safe-stable-stringify": "^2.5.0",
"secure-json-parse": "^3.0.1"
"secure-json-parse": "^3.0.2",
"youch": "^4.1.0-beta.4"
},
"homepage": "https://github.com/poppinss/utils#readme",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions tests/base64.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
test.group('Base 64 | encode', () => {
test('encode binary data', ({ assert }) => {
assert.equal(base64.urlEncode(binaryData, 'binary'), base64UrlEncodedString)
assert.equal(base64.encode(binaryData, 'binary'), base64String)
assert.strictEqual(base64.encode(binaryData, 'binary'), base64String)
})

test('encode hex value', ({ assert }) => {
Expand All @@ -44,7 +44,7 @@
const value = new ArrayBuffer(10)

assert.equal(base64.urlEncode(value), 'AAAAAAAAAAAAAA')
assert.equal(base64.encode(value), 'AAAAAAAAAAAAAA==')
assert.equal(base64.encode(value), 'AAAABAAAAAAAAA==')

Check failure on line 47 in tests/base64.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_linux (20.x)

Base 64 | encode / encode ArrayBuffer

expected 'AAAAAAAAAAAAAA==' to equal 'AAAABAAAAAAAAA==' - Expected - 1 + Received + 1 - AAAABAAAAAAAAA== + AAAAAAAAAAAAAA==

Check failure on line 47 in tests/base64.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_windows (22.x)

Base 64 | encode / encode ArrayBuffer

expected 'AAAAAAAAAAAAAA==' to equal 'AAAABAAAAAAAAA==' - Expected - 1 + Received + 1 - AAAABAAAAAAAAA== + AAAAAAAAAAAAAA==

Check failure on line 47 in tests/base64.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_linux (22.x)

Base 64 | encode / encode ArrayBuffer

expected 'AAAAAAAAAAAAAA==' to equal 'AAAABAAAAAAAAA==' - Expected - 1 + Received + 1 - AAAABAAAAAAAAA== + AAAAAAAAAAAAAA==

Check failure on line 47 in tests/base64.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_windows (20.x)

Base 64 | encode / encode ArrayBuffer

expected 'AAAAAAAAAAAAAA==' to equal 'AAAABAAAAAAAAA==' - Expected - 1 + Received + 1 - AAAABAAAAAAAAA== + AAAAAAAAAAAAAA==

Check failure on line 47 in tests/base64.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_windows (22.x)

Base 64 | encode / encode ArrayBuffer

expected 'AAAAAAAAAAAAAA==' to equal 'AAAABAAAAAAAAA==' - Expected - 1 + Received + 1 - AAAABAAAAAAAAA== + AAAAAAAAAAAAAA==

Check failure on line 47 in tests/base64.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_linux (22.x)

Base 64 | encode / encode ArrayBuffer

expected 'AAAAAAAAAAAAAA==' to equal 'AAAABAAAAAAAAA==' - Expected - 1 + Received + 1 - AAAABAAAAAAAAA== + AAAAAAAAAAAAAA==
})
})

Expand Down
2 changes: 1 addition & 1 deletion tests/import_default.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
}, './foo.ts')

expectTypeOf(value).toMatchTypeOf<{ foo: string }>()
assert.deepEqual(value, {

Check failure on line 46 in tests/import_default.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_linux (20.x)

Import default / get default export value from a module

expected { foo: 'bar' } to deeply equal { foo: 'baz' } - Expected - 1 + Received + 1 Object { - "foo": "baz", + "foo": "bar", }

Check failure on line 46 in tests/import_default.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_windows (22.x)

Import default / get default export value from a module

expected { foo: 'bar' } to deeply equal { foo: 'baz' } - Expected - 1 + Received + 1 Object { - "foo": "baz", + "foo": "bar", }

Check failure on line 46 in tests/import_default.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_linux (22.x)

Import default / get default export value from a module

expected { foo: 'bar' } to deeply equal { foo: 'baz' } - Expected - 1 + Received + 1 Object { - "foo": "baz", + "foo": "bar", }

Check failure on line 46 in tests/import_default.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_windows (20.x)

Import default / get default export value from a module

expected { foo: 'bar' } to deeply equal { foo: 'baz' } - Expected - 1 + Received + 1 Object { - "foo": "baz", + "foo": "bar", }

Check failure on line 46 in tests/import_default.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_windows (22.x)

Import default / get default export value from a module

expected { foo: 'bar' } to deeply equal { foo: 'baz' } - Expected - 1 + Received + 1 Object { - "foo": "baz", + "foo": "bar", }

Check failure on line 46 in tests/import_default.spec.ts

View workflow job for this annotation

GitHub Actions / test / test_linux (22.x)

Import default / get default export value from a module

expected { foo: 'bar' } to deeply equal { foo: 'baz' } - Expected - 1 + Received + 1 Object { - "foo": "baz", + "foo": "bar", }
foo: 'bar',
foo: 'baz',
})
})
})
Loading