Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,6 @@
const test = require('node:test');
test.before(() => console.log('before(): global'));
test.beforeEach(() => console.log('beforeEach(): global'));
test.after(() => console.log('after(): global'));
test.afterEach(() => console.log('afterEach(): global'));

View File

@ -0,0 +1,6 @@
import test from 'node:test';
test.before(() => console.log('before(): global'));
test.beforeEach(() => console.log('beforeEach(): global'));
test.after(() => console.log('after(): global'));
test.afterEach(() => console.log('afterEach(): global'));

View File

@ -0,0 +1,37 @@
'use strict';
const { before, beforeEach, after, afterEach, test, suite } = require('node:test');
globalThis.GLOBAL_ORDER = [];
function record(data) {
globalThis.GLOBAL_ORDER.push(data);
console.log(data);
}
before(function() {
record(`before one: ${this.name}`);
});
beforeEach(function() {
record(`beforeEach one: ${this.name}`);
});
after(function() {
record(`after one: ${this.name}`);
});
afterEach(function() {
record(`afterEach one: ${this.name}`);
});
suite('suite one', function() {
record(this.name);
test('suite one - test', { only: true }, function() {
record(this.name);
});
});
test('test one', function() {
record(this.name);
});

View File

@ -0,0 +1,35 @@
'use strict';
const { before, beforeEach, after, afterEach, test, suite } = require('node:test');
function record(data) {
globalThis.GLOBAL_ORDER.push(data);
console.log(data);
}
before(function() {
record(`before two: ${this.name}`);
});
beforeEach(function() {
record(`beforeEach two: ${this.name}`);
});
after(function() {
record(`after two: ${this.name}`);
});
afterEach(function() {
record(`afterEach two: ${this.name}`);
});
suite('suite two', function() {
record(this.name);
before(function() {
record(`before suite two: ${this.name}`);
});
test('suite two - test', { only: true }, function() {
record(this.name);
});
});