Aktueller Stand

This commit is contained in:
2026-01-22 19:05:45 +01:00
parent 85dee61a4d
commit e280e4eadb
1967 changed files with 397327 additions and 74093 deletions

View File

@@ -1,8 +1,8 @@
'use strict'
const { test } = require('tap')
const { spawnSync } = require('child_process')
const { resolve } = require('path')
const { test } = require('node:test')
const { spawnSync } = require('node:child_process')
const { resolve } = require('node:path')
const entry = resolve(__dirname, '../examples', 'example.js')
@@ -14,7 +14,7 @@ test('--no-warnings is set in cli', t => {
])
const stderr = child.stderr.toString()
t.equal(stderr, '')
t.assert.deepStrictEqual(stderr, '')
})
test('--no-warnings is not set in cli', t => {
@@ -24,7 +24,7 @@ test('--no-warnings is not set in cli', t => {
])
const stderr = child.stderr.toString()
t.match(stderr, /\[CUSTDEP001\] DeprecationWarning: This is a deprecation warning/)
t.assert.match(stderr, /\[CUSTDEP001\] DeprecationWarning: This is a deprecation warning/)
})
test('NODE_NO_WARNINGS is set to 1', t => {
@@ -38,7 +38,7 @@ test('NODE_NO_WARNINGS is set to 1', t => {
})
const stderr = child.stderr.toString()
t.equal(stderr, '')
t.assert.deepStrictEqual(stderr, '')
})
test('NODE_NO_WARNINGS is set to 0', t => {
@@ -52,7 +52,7 @@ test('NODE_NO_WARNINGS is set to 0', t => {
})
const stderr = child.stderr.toString()
t.match(stderr, /\[CUSTDEP001\] DeprecationWarning: This is a deprecation warning/)
t.assert.match(stderr, /\[CUSTDEP001\] DeprecationWarning: This is a deprecation warning/)
})
test('NODE_NO_WARNINGS is not set', t => {
@@ -62,7 +62,7 @@ test('NODE_NO_WARNINGS is not set', t => {
])
const stderr = child.stderr.toString()
t.match(stderr, /\[CUSTDEP001\] DeprecationWarning: This is a deprecation warning/)
t.assert.match(stderr, /\[CUSTDEP001\] DeprecationWarning: This is a deprecation warning/)
})
test('NODE_Options contains --no-warnings', t => {
@@ -76,5 +76,5 @@ test('NODE_Options contains --no-warnings', t => {
})
const stderr = child.stderr.toString()
t.equal(stderr, '')
t.assert.deepStrictEqual(stderr, '')
})